RunCommand constructor

RunCommand({
  1. GetIndicatesUseCase getIndicates = const GetIndicatesUseCase(),
  2. required DeletePreviousCommentsUseCase deletePreviousComments,
  3. required CommentIndicatesUseCase commentIndicates,
})

Implementation

RunCommand({
  GetIndicatesUseCase getIndicates = const GetIndicatesUseCase(),
  required DeletePreviousCommentsUseCase deletePreviousComments,
  required CommentIndicatesUseCase commentIndicates,
})  : _getIndicates = getIndicates,
      _deletePreviousComments = deletePreviousComments,
      _commentIndicates = commentIndicates {
  argParser.addOptions([
    RepoOption(),
    NumOption(),
    BaseOption(),
    HeadOption(),
    DirOption(),
  ]);
}