CommandContext constructor
CommandContext({
- required Logger logger,
- PlatformService? platform,
- FileSystemService? fileSystem,
- ProcessService? process,
- ConfigService? config,
- TerminalService? terminal,
Implementation
CommandContext({
required this.logger,
PlatformService? platform,
FileSystemService? fileSystem,
ProcessService? process,
ConfigService? config,
TerminalService? terminal,
}) : platform = platform ?? const PlatformService(),
fileSystem = fileSystem ?? const FileSystemService(),
process = process ?? const ProcessService(),
config = config ?? const ConfigService(),
terminal = terminal ?? TerminalService(logger: logger);