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:
ffranr 2025-12-09 15:57:14 +00:00
parent e96424cc4a
commit a0e63124c0
No known key found for this signature in database
GPG key ID: C4A995ED1B728904
55 changed files with 383 additions and 216 deletions

View file

@ -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{

View file

@ -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",

View file

@ -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 " +

View file

@ -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,
},

View file

@ -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
}