Class: Textus::CLI::SchemaGroup
- Defined in:
- lib/textus/cli/schema_group.rb
Instance Attribute Summary
Attributes inherited from Verb
Instance Method Summary collapse
-
#parse(argv) ⇒ Object
Back-compat: ‘textus schema KEY` (dotted key, no subcommand word).
Methods inherited from Group
#call, inherited, needs_store?, subcommands
Methods inherited from Verb
#emit, inherited, #initialize, needs_store?, option, options
Constructor Details
This class inherits a constructor from Textus::CLI::Verb
Instance Method Details
#parse(argv) ⇒ Object
Back-compat: ‘textus schema KEY` (dotted key, no subcommand word). If the first positional looks like a dotted key, treat it as `schema show KEY`.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/textus/cli/schema_group.rb', line 12 def parse(argv) first = argv.first if first && dotted_key?(first) @stderr.puts( "textus: 'schema KEY' is deprecated; use 'textus schema show KEY' instead. Removed in 0.6.", ) argv.unshift("show") end super end |