Skip to content

Commit

Permalink
fix: trackable action flag usage text. --no-wait does not exist
Browse files Browse the repository at this point in the history
--wait gets set to true

Signed-off-by: Steffen Windoffer <steffen@wind0r.de>
Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
  • Loading branch information
wind0r authored and smira committed Feb 6, 2023
1 parent 5cb2915 commit 0c6c888
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/talosctl/cmd/talos/track.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ type trackableActionCmdFlags struct {

func (f *trackableActionCmdFlags) addTrackActionFlags(cmd *cobra.Command) {
cmd.Flags().BoolVar(&f.wait, "wait", true, "wait for the operation to complete, tracking its progress. always set to true when --debug is set")
cmd.Flags().BoolVar(&f.debug, "debug", false, "debug operation from kernel logs. --no-wait is set to false when this flag is set")
cmd.Flags().BoolVar(&f.debug, "debug", false, "debug operation from kernel logs. --wait is set to true when this flag is set")
cmd.Flags().DurationVar(&f.timeout, "timeout", 30*time.Minute, "time to wait for the operation is complete if --debug or --wait is set")
}
8 changes: 4 additions & 4 deletions website/content/v1.4/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -2175,7 +2175,7 @@ talosctl reboot [flags]
### Options

```
--debug debug operation from kernel logs. --no-wait is set to false when this flag is set
--debug debug operation from kernel logs. --wait is set to true when this flag is set
-h, --help help for reboot
-m, --mode string select the reboot mode: "default", "powercycle" (skips kexec) (default "default")
--timeout duration time to wait for the operation is complete if --debug or --wait is set (default 30m0s)
Expand Down Expand Up @@ -2207,7 +2207,7 @@ talosctl reset [flags]
### Options

```
--debug debug operation from kernel logs. --no-wait is set to false when this flag is set
--debug debug operation from kernel logs. --wait is set to true when this flag is set
--graceful if true, attempt to cordon/drain node and leave etcd (if applicable) (default true)
-h, --help help for reset
--reboot if true, reboot the node after resetting instead of shutting down
Expand Down Expand Up @@ -2332,7 +2332,7 @@ talosctl shutdown [flags]
### Options

```
--debug debug operation from kernel logs. --no-wait is set to false when this flag is set
--debug debug operation from kernel logs. --wait is set to true when this flag is set
--force if true, force a node to shutdown without a cordon/drain
-h, --help help for shutdown
--timeout duration time to wait for the operation is complete if --debug or --wait is set (default 30m0s)
Expand Down Expand Up @@ -2475,7 +2475,7 @@ talosctl upgrade [flags]
### Options

```
--debug debug operation from kernel logs. --no-wait is set to false when this flag is set
--debug debug operation from kernel logs. --wait is set to true when this flag is set
-f, --force force the upgrade (skip checks on etcd health and members, might lead to data loss)
-h, --help help for upgrade
-i, --image string the container image to use for performing the install
Expand Down

0 comments on commit 0c6c888

Please sign in to comment.