mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
multi: reformat long lines for readability
- Replace occurrences of `// nolint:lll` with `// nolint:ll` across files for consistency. - Reformat multiline strings, comments, and function parameters to improve clarity and adhere to style guidelines. - Add `// nolint:ll` comments where necessary to prevent linter warnings.
This commit is contained in:
parent
e96424cc4a
commit
a0e63124c0
55 changed files with 383 additions and 216 deletions
|
|
@ -146,7 +146,8 @@ var updateAccountCommand = cli.Command{
|
|||
Name: "update",
|
||||
ShortName: "u",
|
||||
Usage: "Update an existing off-chain account.",
|
||||
ArgsUsage: "[id | label] new_balance [new_expiration_date] [--save_to=]",
|
||||
ArgsUsage: "[id | label] new_balance [new_expiration_date] " +
|
||||
"[--save_to=]",
|
||||
Description: "Updates an existing off-chain account and sets " +
|
||||
"either a new balance or new expiration date or both.",
|
||||
Flags: []cli.Flag{
|
||||
|
|
|
|||
|
|
@ -53,7 +53,8 @@ var listActionsCommand = cli.Command{
|
|||
Name: "state",
|
||||
Usage: "The action state to filter on. If not set, " +
|
||||
"then actions of any state will be returned. " +
|
||||
"Options include: 'pending', 'done' and 'error'.",
|
||||
"Options include: 'pending', 'done' and " +
|
||||
"'error'.",
|
||||
},
|
||||
cli.Uint64Flag{
|
||||
Name: "index_offset",
|
||||
|
|
|
|||
|
|
@ -131,11 +131,11 @@ var addAutopilotSessionCmd = cli.Command{
|
|||
},
|
||||
cli.StringFlag{
|
||||
Name: "privacy-flags",
|
||||
Usage: "String representation of privacy flags to set " +
|
||||
"for the session. Each individual flag will " +
|
||||
"remove privacy from certain aspects of " +
|
||||
"messages transmitted to autopilot. " +
|
||||
"The strongest privacy is on by " +
|
||||
Usage: "String representation of privacy flags " +
|
||||
"to set for the session. Each individual " +
|
||||
"flag will remove privacy from certain " +
|
||||
"aspects of messages transmitted to " +
|
||||
"autopilot. The strongest privacy is on by " +
|
||||
"default and an empty string means full " +
|
||||
"privacy. Some features may not be able to " +
|
||||
"run correctly with full privacy, see the " +
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ var litCommands = []cli.Command{
|
|||
Name: "bakesupermacaroon",
|
||||
Usage: "Bake a new super macaroon with all of LiT's active " +
|
||||
"permissions",
|
||||
Description: "Bake a new super macaroon with all of LiT's active " +
|
||||
"permissions.",
|
||||
Description: "Bake a new super macaroon with all of LiT's " +
|
||||
"active permissions.",
|
||||
Category: "LiT",
|
||||
Action: bakeSuperMacaroon,
|
||||
Flags: []cli.Flag{
|
||||
|
|
@ -47,8 +47,8 @@ var litCommands = []cli.Command{
|
|||
Name: "getinfo",
|
||||
Usage: "Returns basic information related to the active " +
|
||||
"daemon",
|
||||
Description: "Returns basic information related to the active " +
|
||||
"daemon.",
|
||||
Description: "Returns basic information related to the " +
|
||||
"active daemon.",
|
||||
Category: "LiT",
|
||||
Action: getInfo,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -121,17 +121,16 @@ func addSession(cli *cli.Context) error {
|
|||
sessionExpiry := time.Now().Add(sessionLength).Unix()
|
||||
|
||||
ctx := getContext()
|
||||
resp, err := client.AddSession(
|
||||
ctx, &litrpc.AddSessionRequest{
|
||||
Label: cli.String("label"),
|
||||
SessionType: sessType,
|
||||
ExpiryTimestampSeconds: uint64(sessionExpiry),
|
||||
MailboxServerAddr: cli.String("mailboxserveraddr"),
|
||||
DevServer: cli.Bool("devserver"),
|
||||
MacaroonCustomPermissions: macPerms,
|
||||
AccountId: cli.String("account_id"),
|
||||
},
|
||||
)
|
||||
req := litrpc.AddSessionRequest{
|
||||
Label: cli.String("label"),
|
||||
SessionType: sessType,
|
||||
ExpiryTimestampSeconds: uint64(sessionExpiry),
|
||||
MailboxServerAddr: cli.String("mailboxserveraddr"),
|
||||
DevServer: cli.Bool("devserver"),
|
||||
MacaroonCustomPermissions: macPerms,
|
||||
AccountId: cli.String("account_id"),
|
||||
}
|
||||
resp, err := client.AddSession(ctx, &req)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue