getCommitType function

CommitType getCommitType()

Implementation

CommitType getCommitType() {
  final selection = Select(
          prompt: "Select the commit type (none will ignore it)",
          options: CommitType.values.map((type) => type.name).toList())
      .interact();
  return CommitType.values[selection];
}