Documentation
¶
Index ¶
- Variables
- func AddTermFlags(cmd *cobra.Command, launchOpt string)
- func AddWaitFlag(cmd *cobra.Command)
- func AutocompMachine(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompNamespace(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompNonRunningMachine(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AutocompRunningMachine(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
Constants ¶
This section is empty.
Variables ¶
View Source
var NK *koble.Koble
View Source
var ( // define Koble root command RootCmd = &cobra.Command{ Use: "koble", Short: "Koble is a network emulation tool", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { var err error NK, err = koble.Load() if err != nil { return err } return nil }, PersistentPostRunE: func(cmd *cobra.Command, args []string) error { return NK.Cleanup() }, Version: koble.VERSION, SilenceUsage: true, SilenceErrors: true, } )
Functions ¶
func AddTermFlags ¶
func AddWaitFlag ¶
func AutocompMachine ¶
func AutocompMachine(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
Autocompletion function to get list of machines
func AutocompNamespace ¶
func AutocompNamespace(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
Autocompletion function to get list of active namespaces
func AutocompNonRunningMachine ¶
func AutocompNonRunningMachine(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
Autocompletion function to get list of non-running machines
func AutocompRunningMachine ¶
func AutocompRunningMachine(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
Autocompletion function to get list of running machines
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.