Documentation ¶
Index ¶
- func ActionArgcomplete(command ...string) carapace.Action
- func ActionBash(command ...string) carapace.Action
- func ActionBridges(command ...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 ActionInshellisense(command ...string) carapace.Action
- func ActionKingpin(command ...string) carapace.Action
- func ActionMacro(command ...string) carapace.Action
- func ActionPowershell(command ...string) carapace.Action
- func ActionUrfavecli(command ...string) carapace.Action
- func ActionYargs(command ...string) carapace.Action
- func ActionZsh(command ...string) carapace.Action
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 ActionBash ¶
ActionBash bridges completions registered in bash (uses custom `.bashrc` in “~/.config/carapace/bridge/bash`)
func ActionBridges ¶
Bridges bridges completions as defined in bridges.yaml and CARAPACE_BRIDGE environment variable
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 ActionInshellisense ¶
ActionInshellisense bridges https://github.com/microsoft/inshellisense
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 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 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.