{"modulePath":"github.com/google/agi","version":"v3.3.3+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package commandGenerator\n\nPackage commandGenerator includes the interface and the implementation for generating commands to process.\n\n## Types\n\n```go\ntype CommandGenerator interface {\n\t// GetNextCommand should return a cmd produced by CommandGenerator\n\tGetNextCommand(ctx context.Context) api.Cmd\n\n\t// IsEndOfCommands should return true when there is no more command\n\t// to be produced.\n\tIsEndOfCommands() bool\n\n\t// GetNumOfRemainingCommands should return total number of commands to be generated\n\tGetNumOfRemainingCommands() uint64\n}\n```\nCommandGenerator is the interface to get commands from an arbitrary source. Implementers of this interface should be able to produce commands when asked until they cannot produce any new command.\n\n```go\nfunc NewLinearCommandGenerator(initialCommands []api.Cmd, realCommands []api.Cmd) CommandGenerator\n```\nNewLinearCommandGenerator generates a command generator that takes a list of cmds and returns them in order when GetNextCommand is called.\n\n","path":"github.com/google/agi/gapis/api/commandGenerator","name":"commandGenerator","synopsis":"Package commandGenerator includes the interface and the implementation for generating commands to process.","isRedistributable":true}
