mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-12 18:54:31 +00:00
24 lines
537 B
Go
24 lines
537 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "devbox",
|
|
Short: "Instant, easy, predictable shells and containers",
|
|
Long: "https://www.jetpack.io/devbox/",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func Execute() error {
|
|
return rootCmd.Execute()
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(rootCmd).Standalone()
|
|
rootCmd.PersistentFlags().Bool("debug", false, "Show full stack traces on errors")
|
|
rootCmd.Flags().BoolP("help", "h", false, "help for devbox")
|
|
}
|