Skip to content

Commit 44cb9ad

Browse files
committed
Added toolbox
1 parent b449441 commit 44cb9ad

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}

0 commit comments

Comments
 (0)