RevaliRunner constructor
RevaliRunner({
- required Logger logger,
- required String initialDirectory,
- required FileSystem fs,
Implementation
RevaliRunner({
required this.logger,
required String initialDirectory,
required FileSystem fs,
}) : super('revali', 'revali code generator') {
argParser
..addFlag(
'loud',
help: 'Prints detailed output',
hide: true,
)
..addFlag(
'quiet',
help: 'Limits output to important information only',
hide: true,
);
final entrypointHandler = ConstructEntrypointHandler(
logger: logger,
initialDirectory: initialDirectory,
fs: fs,
);
addCommand(
DevCommand(
fs: fs,
logger: logger,
generator: entrypointHandler,
),
);
addCommand(
BuildCommand(
fs: fs,
logger: logger,
generator: entrypointHandler,
),
);
}