From 92c128d76210c7d62accfb3d72072b02f60b31a4 Mon Sep 17 00:00:00 2001 From: rsteube Date: Mon, 9 May 2022 23:26:07 +0200 Subject: [PATCH] tmux: kill-session --- .../cmd/{killSession_generated.go => killSession.go} | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) rename completers/tmux_completer/cmd/{killSession_generated.go => killSession.go} (53%) diff --git a/completers/tmux_completer/cmd/killSession_generated.go b/completers/tmux_completer/cmd/killSession.go similarity index 53% rename from completers/tmux_completer/cmd/killSession_generated.go rename to completers/tmux_completer/cmd/killSession.go index b8a3f4b0fe..0762fab967 100644 --- a/completers/tmux_completer/cmd/killSession_generated.go +++ b/completers/tmux_completer/cmd/killSession.go @@ -8,17 +8,20 @@ import ( var killSessionCmd = &cobra.Command{ Use: "kill-session", - Short: "", + Short: "destroy a given session", Run: func(cmd *cobra.Command, args []string) {}, } func init() { carapace.Gen(killSessionCmd).Standalone() - killSessionCmd.Flags().StringS("t", "t", "", "target-session") + killSessionCmd.Flags().BoolS("C", "C", false, "clear alerts (bell, activity, silence) in all windows linked to the session") + killSessionCmd.Flags().BoolS("a", "a", false, "kill all session except the one specified by -t") + killSessionCmd.Flags().StringS("t", "t", "", "specify target session") + rootCmd.AddCommand(killSessionCmd) carapace.Gen(killSessionCmd).FlagCompletion(carapace.ActionMap{ - "t": tmux.ActionWindows(), + "t": tmux.ActionSessions(), }) }