bridge

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 23 Imported by: 104

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionArgcomplete

func ActionArgcomplete(command ...string) carapace.Action

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 ActionArgcompleteV1(command ...string) carapace.Action

Deprecated: Old version which uses fd 8/9 (not available on powershell/windows).

func ActionAws added in v1.4.9

func ActionAws(command ...string) carapace.Action

ActionAws bridges https://github.com/aws/aws-cli

func ActionBash

func ActionBash(command ...string) carapace.Action

ActionBash bridges completions registered in bash

(uses custom `.bashrc` in `~/.config/carapace/bridge/bash`)

func ActionBridge added in v1.5.0

func ActionBridge(command ...string) carapace.Action

ActionBridge bridges completions defined by choices and CARAPACE_BRIDGE

func ActionBridges

func ActionBridges(name string) carapace.Action

ActionBridges completes available bridges.

complete
cobra

func ActionCarapace

func ActionCarapace(command ...string) carapace.Action

ActionCarapace bridges https://github.com/carapace-sh/carapace

func ActionCarapaceBin

func ActionCarapaceBin(command ...string) carapace.Action

ActionCarapaceBin bridges completions registered in carapace-bin

func ActionClap

func ActionClap(command ...string) carapace.Action

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

func ActionClick(command ...string) carapace.Action

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

func ActionCobra(command ...string) carapace.Action

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

func ActionComplete(command ...string) carapace.Action

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

func ActionFish(command ...string) carapace.Action

ActionFish bridges completions registered in fish

(uses custom `config.fish` in `~/.config/carapace/bridge/fish`)

func ActionGcloud added in v1.4.10

func ActionGcloud(command ...string) carapace.Action

ActionGcloud bridges https://docs.cloud.google.com/sdk/gcloud

func ActionInshellisense

func ActionInshellisense(command ...string) carapace.Action

ActionInshellisense bridges https://github.com/microsoft/inshellisense

func ActionJJ added in v1.5.1

func ActionJJ(command ...string) carapace.Action

ActionJJ bridges https://www.jj-vcs.dev

func ActionKingpin

func ActionKingpin(command ...string) carapace.Action

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

func ActionKitten(command ...string) carapace.Action

ActionKitten bridges https://github.com/kovidgoyal/kitty

func ActionMacro

func ActionMacro(command ...string) carapace.Action

ActionCarapace bridges macros exposed with https://github.com/carapace-sh/carapace-bin

func ActionPowershell

func ActionPowershell(command ...string) carapace.Action

ActionPowershell bridges completions registered in powershell

(uses custom `Microsoft.PowerShell_profile.ps1` in `~/.config/carapace/bridge/powershell`)

func ActionUrfavecli

func ActionUrfavecli(command ...string) carapace.Action

ActionUrfavecli bridges https://github.com/urfave/cli

func ActionUrfavecliV1 added in v1.3.0

func ActionUrfavecliV1(command ...string) carapace.Action

ActionUrfavecliV1 bridges https://github.com/urfave/cli (v1-v2)

func ActionYargs

func ActionYargs(command ...string) carapace.Action

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"),
	)
}

func ActionZsh

func ActionZsh(command ...string) carapace.Action

ActionZsh bridges completions registered in zsh

(uses custom `.zshrc` in `~/.config/carapace/bridge/zsh`)

func Detect added in v1.3.0

func Detect(cmd string) (*bridge, bool)

TODO experimental

func Get added in v1.4.11

func Get(name string) (func(command ...string) carapace.Action, bool)

TODO experimental

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL