From 26c117a7ee4949cc2ed96ef7dd769a90868edc28 Mon Sep 17 00:00:00 2001 From: Maximilian Hubert <64627729+gap-editor@users.noreply.github.com> Date: Tue, 27 May 2025 15:44:21 +0200 Subject: [PATCH 1/3] docs: update release-notes-0.20.0.md cmd: add usage and desc to `wtclient session` Update wtclient.go Update release-notes-0.20.0.md Update release-notes-0.20.0.md Update release-notes-0.20.0.md --- cmd/commands/wtclient.go | 6 ++++++ docs/release-notes/release-notes-0.20.0.md | 1 + 2 files changed, 7 insertions(+) diff --git a/cmd/commands/wtclient.go b/cmd/commands/wtclient.go index 075861b981c..b8db99f72a7 100644 --- a/cmd/commands/wtclient.go +++ b/cmd/commands/wtclient.go @@ -377,6 +377,9 @@ func policy(ctx *cli.Context) error { var sessionCommands = cli.Command{ Name: "session", + Usage: "Manage watchtower client sessions.", + Description: "Manage sessions with the watchtower client, including " + + "terminating sessions.", Subcommands: []cli.Command{ terminateSessionCommand, }, @@ -384,6 +387,9 @@ var sessionCommands = cli.Command{ var terminateSessionCommand = cli.Command{ Name: "terminate", + Usage: "Terminate a watchtower client session.", + Description: "Terminate an active session with the watchtower " + + "client by ID.", ArgsUsage: "id", Action: actionDecorator(terminateSession), } diff --git a/docs/release-notes/release-notes-0.20.0.md b/docs/release-notes/release-notes-0.20.0.md index 1ee2e05fab0..c4c0959e675 100644 --- a/docs/release-notes/release-notes-0.20.0.md +++ b/docs/release-notes/release-notes-0.20.0.md @@ -70,5 +70,6 @@ ## Code Health ## Tooling and Documentation +[Add usage and desc to wtclient session cmd](https://github.com/lightningnetwork/lnd/pull/9765): Enhance documentation for various watchtower commands # Contributors (Alphabetical Order) From 32619ddd29c8c2c7d5ed8a61edd5e0f85380d2f3 Mon Sep 17 00:00:00 2001 From: Maximilian Hubert <64627729+gap-editor@users.noreply.github.com> Date: Tue, 27 May 2025 15:38:43 +0200 Subject: [PATCH 2/3] cmd/wtclient: enhance help text for session and terminate subcommands --- cmd/commands/wtclient.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/commands/wtclient.go b/cmd/commands/wtclient.go index b8db99f72a7..348a22c3bc5 100644 --- a/cmd/commands/wtclient.go +++ b/cmd/commands/wtclient.go @@ -378,8 +378,6 @@ func policy(ctx *cli.Context) error { var sessionCommands = cli.Command{ Name: "session", Usage: "Manage watchtower client sessions.", - Description: "Manage sessions with the watchtower client, including " + - "terminating sessions.", Subcommands: []cli.Command{ terminateSessionCommand, }, @@ -388,8 +386,6 @@ var sessionCommands = cli.Command{ var terminateSessionCommand = cli.Command{ Name: "terminate", Usage: "Terminate a watchtower client session.", - Description: "Terminate an active session with the watchtower " + - "client by ID.", ArgsUsage: "id", Action: actionDecorator(terminateSession), } From ec4efd4f6d857b72c27485dc93725b907331e9e4 Mon Sep 17 00:00:00 2001 From: Maximilian Hubert <64627729+gap-editor@users.noreply.github.com> Date: Wed, 4 Jun 2025 18:50:40 +0200 Subject: [PATCH 3/3] fix lint --- cmd/commands/wtclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/commands/wtclient.go b/cmd/commands/wtclient.go index 348a22c3bc5..34294c33437 100644 --- a/cmd/commands/wtclient.go +++ b/cmd/commands/wtclient.go @@ -376,8 +376,8 @@ func policy(ctx *cli.Context) error { } var sessionCommands = cli.Command{ - Name: "session", - Usage: "Manage watchtower client sessions.", + Name: "session", + Usage: "Manage watchtower client sessions.", Subcommands: []cli.Command{ terminateSessionCommand, },