Module: Kettle::Family::CLI::CommitOptions

Included in:
BumpVersion, Release, WorkflowCommand
Defined in:
lib/kettle/family/cli.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



56
57
58
59
60
61
62
# File 'lib/kettle/family/cli.rb', line 56

def self.included(base)
  base.option :commit, desc: "Allow workflow commands that change files to commit"
  base.option :no_commit, long: "--no-commit", desc: "Skip automatic commits after mutating workflow commands" do
    options[:commit] = false
  end
  base.option :allow_dirty, long: "--allow-dirty", desc: "Reserved for compatibility; member repos manage their own commit safety"
end