ExtractStringCommand constructor
ExtractStringCommand(
- Future exec()
Implementation
ExtractStringCommand(this.exec) {
argParser.addOption('path',
abbr: 'p',
help:
'Path used to search for strings (recursive), for example, pass the /lib folder to search for Strings in dart files.');
argParser.addOption('exclude',
defaultsTo: null,
abbr: 'r',
help:
'Comma separated list of files and folders to be excluded from the extraction.');
argParser.addFlag('clean',
defaultsTo: false,
abbr: 'c',
help: 'Clean results, preventing duplicates');
argParser.addOption('output',
defaultsTo: 'strings.yaml',
abbr: 'o',
help: 'Sets the output path for the generated json map.');
argParser.addOption('ext',
defaultsTo: 'dart',
abbr: 'e',
help:
'Comma separated list of allowed file extensions types to analyze for strings.');
argParser.addFlag('permissive',
abbr: 's',
help:
'Toggles permissive mode, capturing strings without spaces in it.');
// addConfigOption(argParser);
}