Documentation
¶
Index ¶
- Variables
- func CallCmd(t *testing.T, clients APIClients, trackerFn analytics.TrackerFn, args []string) ([]byte, error)
- func Execute(version string)
- func ExtraErrorHelp(cmdName string, cmdAction string) string
- func HasOptionalFlags(cmd *cobra.Command) bool
- func HasRequiredFlags(cmd *cobra.Command) bool
- func NewQuickStartCmd(analyticsTrackerFn analytics.TrackerFn, environmentsClient environments.Client, ...) *cobra.Command
- func SetupTestEnvVars(_ *testing.T) func(t *testing.T)
- func WrappedOptionalFlagUsages(cmd *cobra.Command) string
- func WrappedRequiredFlagUsages(cmd *cobra.Command) string
- type APIClients
- type Command
- type RootCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var StubbedSuccessResponse = `{
"key": "test-key",
"name": "test-name"
}`
Functions ¶
func ExtraErrorHelp ¶
func HasOptionalFlags ¶
func HasRequiredFlags ¶
func NewQuickStartCmd ¶
func SetupTestEnvVars ¶
SetupTestEnvVars sets up and tears down tests for checking that environment variables are set.
Types ¶
type APIClients ¶
type RootCmd ¶
type RootCmd struct { Commands []Command // contains filtered or unexported fields }
func NewRootCommand ¶
func (RootCmd) HelpCalled ¶
Click to show internal directories.
Click to hide internal directories.