Class: Nsc
- Inherits:
-
Thor
- Object
- Thor
- Nsc
- Defined in:
- lib/nsc.rb,
lib/nsc/util.rb,
lib/nsc/version.rb
Defined Under Namespace
Modules: Util
Constant Summary collapse
- VERSION =
'0.1.0'
Instance Method Summary collapse
Instance Method Details
#commit ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/nsc.rb', line 11 def commit type = Nsc::Util::SHORTTYPES[Ask.list('Choose a type', Nsc::Util::TYPES)] msg = Ask.input 'Enter a commit message' body = Ask.input 'Enter an optional commit body' Cocaine::CommandLine.new('git', 'add --all').run if [:add] construct_commit type, msg, body end |