Module: Formatron::CLI::Generators::GUID
- Defined in:
- lib/formatron/cli/generators/guid.rb
Overview
CLI command for GUID generator
Instance Method Summary collapse
Instance Method Details
#guid_action(c) ⇒ Object
8 9 10 11 12 |
# File 'lib/formatron/cli/generators/guid.rb', line 8 def guid_action(c) c.action do |_args, | puts Formatron::Generators::Util.guid end end |
#guid_formatron_command ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/formatron/cli/generators/guid.rb', line 14 def guid_formatron_command command :'generate guid' do |c| c.syntax = 'formatron generate guid [options]' c.summary = 'Generate a random GUID' c.description = 'Generate a random GUID' guid_action c end end |