CliConfig constructor
const
CliConfig({
- String? command,
- List<
String> positionalArgs = const [], - Map<
String, String> flags = const {}, - Map<
String, String> options = const {}, - bool verbose = false,
- bool quiet = false,
- bool jsonOutput = false,
- String? model,
- String? apiKey,
- int? maxTokens,
- String? systemPrompt,
- List<
String> allowedTools = const [], - PermissionMode? permissionMode,
- String? workDir,
- String? sessionId,
- bool continueSession = false,
- bool printOnly = false,
- bool dangerouslySkipPermissions = false,
- List<
String> mcpServers = const [], - bool listen = false,
- int? listenPort,
- 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,
});