ExtractCommand constructor
ExtractCommand()
Implementation
ExtractCommand() {
argParser.addOption(
_optionNameInput,
help: 'Input package ref. $packageRefExplanation',
mandatory: true,
);
argParser.addFlag(
_optionNameIncludePathDependencies,
abbr: 'p',
help: includePathDependenciesExplanation,
);
argParser.addOption(
_optionNameOutput,
help: '''
Output file for the extracted Package API.
If not specified the extracted API will be printed to the console.
''',
);
argParser.addFlag(
_optionNameNoAnalyzePlatformConstraints,
help: 'Disables analysis of platform constraints.',
defaultsTo: false,
negatable: false,
);
argParser.addFlag(
_optionNameRemoveExample,
help: 'Removes examples from the package to analyze.',
defaultsTo: true,
negatable: true,
);
argParser.addFlag(
_optionNameSetExitCodeOnMissingExport,
help:
'Sets exit code to != 0 if missing exports are detected in the API.',
defaultsTo: false,
negatable: true,
);
init(argParser);
}