Documentation
¶
Overview ¶
Package cmdtest holds the fixtures the command package tests share. It is ordinary (non-test) code so that every command package can import it; it is used only from tests.
Index ¶
Constants ¶
const Profile = "default"
Profile is the profile name written by SaveConfig. Commands under test resolve it as the current profile, so they need no --profile flag.
Variables ¶
This section is empty.
Functions ¶
func ClearCredentialEnv ¶
ClearCredentialEnv unsets the variables that would otherwise override the stored profile.
func SaveConfig ¶
SaveConfig points the CLI at a test server by storing a single profile. It also clears the credential environment variables, so a developer's shell cannot bleed into a test run.
Types ¶
This section is empty.