{"modulePath":"github.com/osapi-io/osapi","version":"v0.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package commandtest\n\nPackage commandtest runs a behavior's generated commands for the gen/cli\\_public\\_test.go each one gets, with the SDK call faked.\n\n## Types\n\n```go\ntype Request struct {\n\tMethod string\n\tPath   string\n\tBody   string\n}\n```\nRequest is what a command sent to the API.\n\n```go\nfunc Sent(\n\tt *testing.T,\n\targs []string,\n) Request\n```\nSent runs the command line args under osapi client, such as node sysctl update --target server1 --key vm.swappiness, through the command layer and the endpoint layer's runner, and returns the request the command sent to the API.\n\n```go\nfunc SentWith(\n\tt *testing.T,\n\targs []string,\n\tstdin string,\n) Request\n```\nSentWith is Sent with stdin as the command's standard input, which a secret flag reads for -.\n\n","path":"github.com/osapi-io/osapi/internal/behavior/command/commandtest","name":"commandtest","synopsis":"Package commandtest runs a behavior's generated commands for the gen/cli_public_test.go each one gets, with the SDK call faked.","isRedistributable":true}
