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. Simple things like SSH and VNC. carbon vm ssh -n vm-name carbon vm vnc -n vm-name Starting and stopping VMs carbon vm start -n vm-name carbon vm stop -n vm-name Carbon supports AWS, QEMU, VirtualBox, and vSphere. `, 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.
Source Files ¶
- config.go
- dev.go
- dev_cloud.go
- dev_fs.go
- dev_platforms.go
- dev_vm.go
- image.go
- image_boostrap.go
- image_build.go
- image_destroy.go
- image_list.go
- project.go
- project_add.go
- project_apply.go
- project_list.go
- root.go
- vm.go
- vm_destroy.go
- vm_launch.go
- vm_list.go
- vm_restart.go
- vm_ssh.go
- vm_start.go
- vm_stop.go
- vm_vnc.go
Click to show internal directories.
Click to hide internal directories.