Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "carbon", Short: "Infrastructure ops simplified", Long: `Manage and use infrastructure with a consistent interface, regardless of where it lives.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if debug { common.LogLevel(slog.LevelDebug) } log.Debug("debug mode", "debug", debug) carbonConfigFile := common.CarbonConfigFile{} err := viper.Unmarshal(&carbonConfigFile) if err != nil { log.Debug("failed to unmarshal viper config to carbon config struct") } carbonObj = carbon.New(carbonConfigFile.Carbon) return nil }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ListingDir ¶ added in v0.2.0
func ListingDir(dir string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.