FinishCommand constructor

FinishCommand()

Implementation

FinishCommand()
    : super(
          'finish',
          'Finish feature by issue id: '
              'merge and remove branch, and update changelog.',
          const ['f']) {
  argParser
    ..addFlag(
      _argDemo.name,
      help: 'Runs command in demonstration mode.',
    )
    ..addArg(
      _argIssue,
      help: 'Issue number, which used for branch name. '
          'Optional, you can provide it in interactive mode.',
      valueHelp: 'NUMBER',
    )
    ..addArg(
      _argChangelog,
      help: 'Line to add in CHANGELOG.md. '
          'Optional, you can provide it in interactive mode. '
          'Example: alex finish feature -${_argChangelog.abbr}"Some new feature"',
      valueHelp: 'CHANGELOG',
    );
}