From d29a629e59444ffde607e4312ee6d2d72879c190 Mon Sep 17 00:00:00 2001 From: rsteube Date: Mon, 9 May 2022 23:15:55 +0200 Subject: [PATCH] tmux: kill-window --- .../cmd/{killWindow_generated.go => killWindow.go} | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) rename completers/tmux_completer/cmd/{killWindow_generated.go => killWindow.go} (54%) diff --git a/completers/tmux_completer/cmd/killWindow_generated.go b/completers/tmux_completer/cmd/killWindow.go similarity index 54% rename from completers/tmux_completer/cmd/killWindow_generated.go rename to completers/tmux_completer/cmd/killWindow.go index 32ab6d5b16..86b89e2b73 100644 --- a/completers/tmux_completer/cmd/killWindow_generated.go +++ b/completers/tmux_completer/cmd/killWindow.go @@ -7,16 +7,17 @@ import ( ) var killWindowCmd = &cobra.Command{ - Use: "kill-window", - Short: "", - Run: func(cmd *cobra.Command, args []string) {}, + Use: "kill-window", + Aliases: []string{"killw"}, + Short: "destroy a given window", + Run: func(cmd *cobra.Command, args []string) {}, } func init() { carapace.Gen(killWindowCmd).Standalone() - killWindowCmd.Flags().BoolS("a", "a", false, "TODO description") - killWindowCmd.Flags().StringS("t", "t", "", "target-window") + killWindowCmd.Flags().BoolS("a", "a", false, "kill all windows except the one specified by -t") + killWindowCmd.Flags().StringS("t", "t", "", "specify target window") rootCmd.AddCommand(killWindowCmd) carapace.Gen(killWindowCmd).FlagCompletion(carapace.ActionMap{