Peter Kurfer
7c2a41ad25
- apply changes in proxy plugin and TLS interceptor - add HTTPS proxy support - move ca-generation command to main app - minor refactoring to improve API stability - move mocks to extra packages to avoid cycling imports - fix bug in multi-port configuration - change HTTP proxy to redirect to HTTP mock instead of maintaining custom rules
22 lines
606 B
Go
22 lines
606 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
pluginsCmd *cobra.Command
|
|
)
|
|
|
|
func init() {
|
|
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.
|
|
`,
|
|
}
|
|
rootCmd.AddCommand(pluginsCmd, generateCaCmd)
|
|
}
|