Class: Space::Architect::CLI::BaseCommand
- Inherits:
-
Object
- Object
- Space::Architect::CLI::BaseCommand
- Defined in:
- lib/space_architect/cli/architect.rb
Overview
Optional loop-phase DSL on the shared command base, read by
Space::Core::CLI::Help to group the help listing. A command may declare
phase <order>, "<Label>"; groups, and members within a group, sort by
Direct Known Subclasses
Architect::Brief::New, Architect::BugReport, Architect::Dispatch, Architect::Evidence, Architect::Freeze, Architect::Gate, Architect::Ground, Architect::Init, Architect::InstallSkills, Architect::Integrate, Architect::Merge, Architect::New, Architect::Provision, Architect::Research::Dispatch, Architect::Research::Status, Architect::Research::Wait, Architect::Section, Architect::Status, Architect::Variant::Add, Architect::Variant::Compare, Architect::Variant::Promote, Architect::Verdict, Architect::Verify, Architect::Worktree::Add, Architect::Worktree::List, Architect::Worktree::Remove
Class Method Summary collapse
-
.commit_message_options ⇒ Object
Declares -m/--message and --message-from on a committing command.
- .phase(order = nil, label = nil) ⇒ Object
Class Method Details
.commit_message_options ⇒ Object
Declares -m/--message and --message-from on a committing command. Every loop command that commits takes both: the space's git log is the loop's durable memory, so detailed messages are encouraged everywhere.
22 23 24 25 26 27 |
# File 'lib/space_architect/cli/architect.rb', line 22 def self. option :message, aliases: ["-m"], default: nil, desc: "Commit message: first line completes the subject after the canonical prefix, the rest becomes the body" option :message_from, default: nil, desc: "Read the commit message from this file (subject line + detailed body)" end |
.phase(order = nil, label = nil) ⇒ Object
13 14 15 16 17 |
# File 'lib/space_architect/cli/architect.rb', line 13 def self.phase(order = nil, label = nil) return @phase if order.nil? @phase = [order, label] end |