{"modulePath":"github.com/api7/cloud-cli","version":"v0.0.0-20240523012138-b9cffea42484","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package commands\n\nPackage commands is a generated GoMock package.\n\n## Types\n\n```go\ntype Cmd interface {\n\t// AppendArgs appends a couple of args to the Cmd.\n\tAppendArgs(args ...string)\n\t// String prints the command.\n\tString() string\n\t// Run launches the command and return the stdout, stderr.\n\tRun(ctx context.Context) (string, string, error)\n\t// Execute launches the command and return error, and print stdout and stderr to console.\n\tExecute(ctx context.Context) error\n}\n```\nCmd is the command constructor and runner.\n\n```go\nfunc New(name string, dryrun bool) Cmd\n```\nNew creates a Cmd object.\n\n```go\ntype MockCmd struct {\n\t// contains filtered or unexported fields\n}\n```\nMockCmd is a mock of Cmd interface.\n\n```go\nfunc NewMockCmd(ctrl *gomock.Controller) *MockCmd\n```\nNewMockCmd creates a new mock instance.\n\n```go\nfunc (m *MockCmd) AppendArgs(args ...string)\n```\nAppendArgs mocks base method.\n\n```go\nfunc (m *MockCmd) EXPECT() *MockCmdMockRecorder\n```\nEXPECT returns an object that allows the caller to indicate expected use.\n\n```go\nfunc (m *MockCmd) Execute(ctx context.Context) error\n```\nExecute mocks base method.\n\n```go\nfunc (m *MockCmd) Run(ctx context.Context) (string, string, error)\n```\nRun mocks base method.\n\n```go\nfunc (m *MockCmd) String() string\n```\nString mocks base method.\n\n```go\ntype MockCmdMockRecorder struct {\n\t// contains filtered or unexported fields\n}\n```\nMockCmdMockRecorder is the mock recorder for MockCmd.\n\n```go\nfunc (mr *MockCmdMockRecorder) AppendArgs(args ...interface{}) *gomock.Call\n```\nAppendArgs indicates an expected call of AppendArgs.\n\n```go\nfunc (mr *MockCmdMockRecorder) Execute(ctx interface{}) *gomock.Call\n```\nExecute indicates an expected call of Execute.\n\n```go\nfunc (mr *MockCmdMockRecorder) Run(ctx interface{}) *gomock.Call\n```\nRun indicates an expected call of Run.\n\n```go\nfunc (mr *MockCmdMockRecorder) String() *gomock.Call\n```\nString indicates an expected call of String.\n\n","path":"github.com/api7/cloud-cli/internal/commands","name":"commands","synopsis":"Package commands is a generated GoMock package.","isRedistributable":true}
