SipRunner constructor
SipRunner({
- required ScriptsYaml scriptsYaml,
- required PubspecLock pubspecLock,
- required PubspecYaml pubspecYaml,
- required Variables variables,
- required Bindings bindings,
- required FindFile findFile,
- required FileSystem fs,
- required CWD cwd,
- required PubUpdater pubUpdater,
- required Logger logger,
Implementation
SipRunner({
required ScriptsYaml scriptsYaml,
required PubspecLock pubspecLock,
required PubspecYaml pubspecYaml,
required Variables variables,
required Bindings bindings,
required FindFile findFile,
required FileSystem fs,
required CWD cwd,
required PubUpdater pubUpdater,
required this.logger,
}) : super(
'sip',
'A command line application to handle mono-repos in dart',
) {
argParser
..addFlag(
'version',
negatable: false,
help: 'Print the current version',
)
..addFlag(
'loud',
negatable: false,
hide: true,
help: 'Prints verbose output',
)
..addFlag(
'quiet',
negatable: false,
hide: true,
help: 'Prints no output',
)
..addFlag(
'version-check',
defaultsTo: true,
help: 'Checks for the latest version of sip_cli',
);
addCommand(
ScriptRunCommand(
scriptsYaml: scriptsYaml,
variables: variables,
bindings: bindings,
logger: logger,
cwd: cwd,
),
);
addCommand(
PubCommand(
pubspecLock: pubspecLock,
pubspecYaml: pubspecYaml,
findFile: findFile,
fs: fs,
logger: logger,
bindings: bindings,
scriptsYaml: scriptsYaml,
),
);
addCommand(
CleanCommand(
pubspecYaml: pubspecYaml,
pubspecLock: pubspecLock,
findFile: findFile,
bindings: bindings,
logger: logger,
cwd: cwd,
scriptsYaml: scriptsYaml,
),
);
addCommand(
ListCommand(
scriptsYaml: scriptsYaml,
logger: logger,
),
);
addCommand(
updateCommand = UpdateCommand(
pubUpdater: pubUpdater,
logger: logger,
),
);
addCommand(
TestCommand(
pubspecYaml: pubspecYaml,
pubspecLock: pubspecLock,
findFile: findFile,
bindings: bindings,
fs: fs,
logger: logger,
keyPressListener: KeyPressListener(logger: logger),
scriptsYaml: scriptsYaml,
),
);
}