Documentation ¶ Index ¶ Constants func ExecuteCommand(c *cobra.Command, args ...string) (string, error) func Init(t *testing.T, profile string) string func InitProfile(profile string) error func Teardown(t *testing.T, c *cobra.Command) Constants ¶ View Source const ( TestMasterPassword = "pass" ) Variables ¶ This section is empty. Functions ¶ func ExecuteCommand ¶ func ExecuteCommand(c *cobra.Command, args ...string) (string, error) func Init ¶ func Init(t *testing.T, profile string) string func InitProfile ¶ func InitProfile(profile string) error func Teardown ¶ func Teardown(t *testing.T, c *cobra.Command) Teardown - reset flags to default value and run all "PostRun" functions. For some reason, `f.Value.Set(f.DefValue)` does not work if the value is of type slice and default value is nil because if so, f.DefValue is the string "[]". Types ¶ This section is empty. Source Files ¶ View all Source files util.go Click to show internal directories. Click to hide internal directories.