Module: Zenflow::BranchCommands::Abort
- Included in:
- Zenflow::BranchCommand
- Defined in:
- lib/zenflow/helpers/branch_commands/abort.rb
Class Method Summary collapse
Class Method Details
.included(thor) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/zenflow/helpers/branch_commands/abort.rb', line 5 def self.included(thor) thor.class_eval do desc "abort", "Aborts the branch and cleans up" option :offline, type: :boolean, desc: "Runs in offline mode" def abort branch_name Zenflow::Branch.checkout(branch(:source)) delete_branches end end end |