Peter Kurfer
91f0cf6963
- use `Unmarshal` method of viper - move config loading, defaulting and stuff to config package - move serve to an extra command and move keep only global flags in root command - add startup logic to onInit method in root command - update mocks - clean config structs - adopt changes in plugins - update default config
17 lines
515 B
Go
17 lines
515 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
pluginsCmd = &cobra.Command{
|
|
Use: "plugins",
|
|
Short: "Use the plugins prefix to interact with commands that are provided by plugins",
|
|
Long: `
|
|
The plugin prefix can be used to interact with commands that are provided by plugins.
|
|
The easiest way to explore what commands are available is to start with 'inetmock plugins' - like you did!
|
|
This help page contains a list of available sub-commands starting with the name of the plugin as a prefix.
|
|
`,
|
|
}
|
|
)
|