Class: Branchtree::Commands::Help
- Defined in:
- lib/branchtree/commands/help.rb
Instance Method Summary collapse
Methods inherited from Common
#load_situation, #load_tree, #pluralize
Methods included from Branchtree::Context
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/branchtree/commands/help.rb', line 12 def execute super puts <<~HELP Branchtree version #{Branchtree::VERSION}. Command-line tool to interactively manage chains or trees of dependent branches in a git repository. Specify your desired branch topography in a YAML file at the path: #{params[:mapfile]} Override this by specifying the BRANCHTREE_MAPFILE environment variables or specifying the -m/--mapfile argument. Format: ``` --- - branch: branch-name rebase: true # Update this branch by rebasing onto its parent, or merging? Default: false (merging). children: - branch: child-branch-0 - branch: child-branch-1 ``` Run branchtree commands within a git repository containing these branches. Available commands include: branchtree [show] - Display the current tree, including status of each branch. branchtree checkout - Interactively navigate to a branch within the tree. branchtree update - Propagate new commits from parent branches recursively through their children. branchtree parent - Display the parent branch of the current HEAD. Use -h/--help flags to see options for each specific subcommand. HELP end |