CliConfig constructor

const CliConfig({
  1. String? command,
  2. List<String> positionalArgs = const [],
  3. Map<String, String> flags = const {},
  4. Map<String, String> options = const {},
  5. bool verbose = false,
  6. bool quiet = false,
  7. bool jsonOutput = false,
  8. String? model,
  9. String? apiKey,
  10. int? maxTokens,
  11. String? systemPrompt,
  12. List<String> allowedTools = const [],
  13. PermissionMode? permissionMode,
  14. String? workDir,
  15. String? sessionId,
  16. bool continueSession = false,
  17. bool printOnly = false,
  18. bool dangerouslySkipPermissions = false,
  19. List<String> mcpServers = const [],
  20. bool listen = false,
  21. int? listenPort,
  22. String? outputFormat,
})

Implementation

const CliConfig({
  this.command,
  this.positionalArgs = const [],
  this.flags = const {},
  this.options = const {},
  this.verbose = false,
  this.quiet = false,
  this.jsonOutput = false,
  this.model,
  this.apiKey,
  this.maxTokens,
  this.systemPrompt,
  this.allowedTools = const [],
  this.permissionMode,
  this.workDir,
  this.sessionId,
  this.continueSession = false,
  this.printOnly = false,
  this.dangerouslySkipPermissions = false,
  this.mcpServers = const [],
  this.listen = false,
  this.listenPort,
  this.outputFormat,
});