File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
completers/linux/toolbox_completer Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ package cmd
2+
3+ import (
4+ "github.com/carapace-sh/carapace"
5+ "github.com/carapace-sh/carapace-bridge/pkg/actions/bridge"
6+ "github.com/spf13/cobra"
7+ )
8+
9+ var rootCmd = & cobra.Command {
10+ Use : "toolbox" ,
11+ Short : "Tool for interactive command line environments on Linux" ,
12+ Long : "https://containertoolbx.org/" ,
13+ Run : func (cmd * cobra.Command , args []string ) {},
14+ DisableFlagParsing : true ,
15+ }
16+
17+ func Execute () error {
18+ return rootCmd .Execute ()
19+ }
20+
21+ func init () {
22+ carapace .Gen (rootCmd ).Standalone ()
23+
24+ carapace .Gen (rootCmd ).PositionalAnyCompletion (
25+ bridge .ActionCobra ("toolbox" ),
26+ )
27+ }
Original file line number Diff line number Diff line change 1+ package main
2+
3+ import (
4+ "github.com/carapace-sh/carapace-bin/completers/linux/toolbox_completer/cmd"
5+ )
6+
7+ func main () {
8+ cmd .Execute ()
9+ }
You can’t perform that action at this time.
0 commit comments