-
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathat_action.go
More file actions
27 lines (22 loc) · 864 Bytes
/
at_action.go
File metadata and controls
27 lines (22 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/kitty"
"github.com/spf13/cobra"
)
var at_actionCmd = &cobra.Command{
Use: "action",
Short: "Run the specified mappable action",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(at_actionCmd).Standalone()
at_actionCmd.Flags().BoolP("help", "h", false, "Show help for this command")
at_actionCmd.Flags().StringP("match", "m", "", "The window to match")
at_actionCmd.Flags().Bool("no-response", false, "Don't wait for a response indicating the success of the action")
at_actionCmd.Flags().Bool("self", false, "Run the action on the window this command is run in instead of the active window")
atCmd.AddCommand(at_actionCmd)
carapace.Gen(at_actionCmd).PositionalAnyCompletion(
kitty.ActionActions(),
)
}