Documentation
¶
Index ¶
- func ActionArgcomplete(command ...string) carapace.Action
- func ActionArgcompleteV1(command ...string) carapace.Actiondeprecated
- func ActionAws(command ...string) carapace.Action
- func ActionBash(command ...string) carapace.Action
- func ActionBridge(command ...string) carapace.Action
- func ActionBridges(name string) carapace.Action
- func ActionCarapace(command ...string) carapace.Action
- func ActionCarapaceBin(command ...string) carapace.Action
- func ActionClap(command ...string) carapace.Action
- func ActionClick(command ...string) carapace.Action
- func ActionCobra(command ...string) carapace.Action
- func ActionComplete(command ...string) carapace.Action
- func ActionFish(command ...string) carapace.Action
- func ActionGcloud(command ...string) carapace.Action
- func ActionInshellisense(command ...string) carapace.Action
- func ActionJJ(command ...string) carapace.Action
- func ActionKingpin(command ...string) carapace.Action
- func ActionKitten(command ...string) carapace.Action
- func ActionMacro(command ...string) carapace.Action
- func ActionPowershell(command ...string) carapace.Action
- func ActionUrfavecli(command ...string) carapace.Action
- func ActionUrfavecliV1(command ...string) carapace.Action
- func ActionYargs(command ...string) carapace.Action
- func ActionZsh(command ...string) carapace.Action
- func Detect(cmd string) (*bridge, bool)
- func Get(name string) (func(command ...string) carapace.Action, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionArgcomplete ¶
ActionArgcomplete bridges https://github.com/kislyuk/argcomplete
var rootCmd = &cobra.Command{
Use: "az",
Short: "Azure Command-Line Interface",
Run: func(cmd *cobra.Command, args []string) {},
DisableFlagParsing: true,
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
carapace.Gen(rootCmd).PositionalAnyCompletion(
argcomplete.ActionArgcomplete("az"),
)
}
func ActionArgcompleteV1
deprecated
added in
v1.3.0
func ActionAws ¶ added in v1.4.9
ActionAws bridges https://github.com/aws/aws-cli
func ActionBash ¶
ActionBash bridges completions registered in bash
(uses custom `.bashrc` in `~/.config/carapace/bridge/bash`)
func ActionBridge ¶ added in v1.5.0
ActionBridge bridges completions defined by choices and CARAPACE_BRIDGE
func ActionCarapace ¶
ActionCarapace bridges https://github.com/carapace-sh/carapace
func ActionCarapaceBin ¶
ActionCarapaceBin bridges completions registered in carapace-bin
func ActionClap ¶
ActionClap bridges https://github.com/clap-rs/clap
var rootCmd = &cobra.Command{
Use: "dynamic",
Short: "dynamic example",
Run: func(cmd *cobra.Command, args []string) {},
DisableFlagParsing: true,
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
carapace.Gen(rootCmd).PositionalAnyCompletion(
bridge.ActionClap("dynamic"),
)
}
func ActionClick ¶
ActionClick bridges https://github.com/pallets/click
var rootCmd = &cobra.Command{
Use: "watson",
Short: "Watson is a tool aimed at helping you monitoring your time",
Run: func(cmd *cobra.Command, args []string) {},
DisableFlagParsing: true,
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
carapace.Gen(rootCmd).PositionalAnyCompletion(
bridge.ActionClick("watson"),
)
}
func ActionCobra ¶
ActionCobra bridges https://github.com/spf13/cobra
var rootCmd = &cobra.Command{
Use: "podman",
Short: "Simple management tool for pods, containers and images",
Long: "https://podman.io/",
Run: func(cmd *cobra.Command, args []string) {},
DisableFlagParsing: true,
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
carapace.Gen(rootCmd).PositionalAnyCompletion(
cobracomplete.ActionCobra("podman"),
)
}
func ActionComplete ¶
ActionComplete bridges https://github.com/posener/complete
var rootCmd = &cobra.Command{
Use: "vault",
Short: "A tool for secrets management",
Long: "https://www.vaultproject.io/",
Run: func(cmd *cobra.Command, args []string) {},
DisableFlagParsing: true,
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
carapace.Gen(rootCmd).PositionalAnyCompletion(
bridge.ActionComplete("vault"),
)
}
func ActionFish ¶
ActionFish bridges completions registered in fish
(uses custom `config.fish` in `~/.config/carapace/bridge/fish`)
func ActionGcloud ¶ added in v1.4.10
ActionGcloud bridges https://docs.cloud.google.com/sdk/gcloud
func ActionInshellisense ¶
ActionInshellisense bridges https://github.com/microsoft/inshellisense
func ActionJJ ¶ added in v1.5.1
ActionJJ bridges https://www.jj-vcs.dev
func ActionKingpin ¶
ActionKingpin bridges https://github.com/alecthomas/kingpin
var rootCmd = &cobra.Command{
Use: "tsh",
Short: "Teleport Command Line Client",
Run: func(cmd *cobra.Command, args []string) {},
DisableFlagParsing: true,
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
carapace.Gen(rootCmd).PositionalAnyCompletion(
bridge.ActionKingpin("tsh"),
)
}
func ActionKitten ¶ added in v1.3.1
ActionKitten bridges https://github.com/kovidgoyal/kitty
func ActionMacro ¶
ActionCarapace bridges macros exposed with https://github.com/carapace-sh/carapace-bin
func ActionPowershell ¶
ActionPowershell bridges completions registered in powershell
(uses custom `Microsoft.PowerShell_profile.ps1` in `~/.config/carapace/bridge/powershell`)
func ActionUrfavecli ¶
ActionUrfavecli bridges https://github.com/urfave/cli
func ActionUrfavecliV1 ¶ added in v1.3.0
ActionUrfavecliV1 bridges https://github.com/urfave/cli (v1-v2)
func ActionYargs ¶
ActionYargs bridges https://github.com/yargs/yargs
var rootCmd = &cobra.Command{
Use: "ng",
Short: "CLI tool for Angular",
Run: func(cmd *cobra.Command, args []string) {},
DisableFlagParsing: true,
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
carapace.Gen(rootCmd).PositionalAnyCompletion(
bridge.ActionYargs("ng"),
)
}
Types ¶
This section is empty.