Skip to content

Commit 48a5f46

Browse files
authored
Merge pull request #944 from hieblmi/fix-static-commands
cmd: fix command descriptions
2 parents b080f01 + 1687590 commit 48a5f46

File tree

1 file changed

+25
-38
lines changed

1 file changed

+25
-38
lines changed

cmd/loop/staticaddr.go

Lines changed: 25 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var listUnspentCommand = cli.Command{
8585
ShortName: "l",
8686
Usage: "List unspent static address outputs.",
8787
Description: `
88-
List all unspent static address outputs.
88+
List all unspent static address outputs.
8989
`,
9090
Flags: []cli.Flag{
9191
cli.IntFlag{
@@ -133,8 +133,8 @@ var withdrawalCommand = cli.Command{
133133
ShortName: "w",
134134
Usage: "Withdraw from static address deposits.",
135135
Description: `
136-
Withdraws from all or selected static address deposits by sweeping them
137-
back to our lnd wallet.
136+
Withdraws from all or selected static address deposits by sweeping them
137+
to the internal wallet or an external address.
138138
`,
139139
Flags: []cli.Flag{
140140
cli.StringSliceFlag{
@@ -225,8 +225,9 @@ func withdraw(ctx *cli.Context) error {
225225
}
226226

227227
var listDepositsCommand = cli.Command{
228-
Name: "listdeposits",
229-
Usage: "Display a summary of static address related information.",
228+
Name: "listdeposits",
229+
Usage: "Displays static address deposits. A filter can be applied to " +
230+
"only show deposits in a specific state.",
230231
Description: `
231232
`,
232233
Flags: []cli.Flag{
@@ -246,39 +247,6 @@ var listDepositsCommand = cli.Command{
246247
Action: listDeposits,
247248
}
248249

249-
var listStaticAddressSwapsCommand = cli.Command{
250-
Name: "listswaps",
251-
Usage: "Display a summary of static address related information.",
252-
Description: `
253-
`,
254-
Action: listStaticAddressSwaps,
255-
}
256-
257-
var summaryCommand = cli.Command{
258-
Name: "summary",
259-
ShortName: "s",
260-
Usage: "Display a summary of static address related information.",
261-
Description: `
262-
Displays various static address related information like deposits,
263-
withdrawals and statistics. The information can be filtered by state.
264-
`,
265-
Flags: []cli.Flag{
266-
cli.StringFlag{
267-
Name: "filter",
268-
Usage: "specify a filter to only display deposits in " +
269-
"the specified state. Leaving out the filter " +
270-
"returns all deposits.\nThe state can be one " +
271-
"of the following: \n" +
272-
"deposited\nwithdrawing\nwithdrawn\n" +
273-
"looping_in\nlooped_in\n" +
274-
"publish_expired_deposit\n" +
275-
"sweep_htlc_timeout\nhtlc_timeout_swept\n" +
276-
"wait_for_expiry_sweep\nexpired\nfailed\n.",
277-
},
278-
},
279-
Action: summary,
280-
}
281-
282250
func listDeposits(ctx *cli.Context) error {
283251
ctxb := context.Background()
284252
if ctx.NArg() > 0 {
@@ -344,6 +312,14 @@ func listDeposits(ctx *cli.Context) error {
344312
return nil
345313
}
346314

315+
var listStaticAddressSwapsCommand = cli.Command{
316+
Name: "listswaps",
317+
Usage: "Shows a list of finalized static address swaps.",
318+
Description: `
319+
`,
320+
Action: listStaticAddressSwaps,
321+
}
322+
347323
func listStaticAddressSwaps(ctx *cli.Context) error {
348324
ctxb := context.Background()
349325
if ctx.NArg() > 0 {
@@ -368,6 +344,17 @@ func listStaticAddressSwaps(ctx *cli.Context) error {
368344
return nil
369345
}
370346

347+
var summaryCommand = cli.Command{
348+
Name: "summary",
349+
ShortName: "s",
350+
Usage: "Display a summary of static address related information.",
351+
Description: `
352+
Displays various static address related information about deposits,
353+
withdrawals and swaps.
354+
`,
355+
Action: summary,
356+
}
357+
371358
func summary(ctx *cli.Context) error {
372359
ctxb := context.Background()
373360
if ctx.NArg() > 0 {

0 commit comments

Comments
 (0)