PageCommand constructor
PageCommand()
Creates a new PageCommand instance.
Configures the command-line argument parser with required and optional parameters:
page-name: Positional argument for the page name (required)-f, --feature-name: Name of the feature to add the page to (required)-a, --apps-name: Name of the apps context (optional)
Implementation
PageCommand() {
argParser.addOption(
'feature-name',
abbr: 'f',
help: 'Name of the feature to be added page',
mandatory: true,
);
argParser.addOption(
'apps-name',
abbr: 'a',
help: 'Name of the apps to be added page.',
);
// Initialize services
_initializeServices();
}