Module: Junoser::Cli
- Defined in:
- lib/junoser/cli.rb
Class Method Summary collapse
- .commit_check(io_or_string) ⇒ Object
- .display_set(io_or_string) ⇒ Object
- .struct(io_or_string) ⇒ Object
Class Method Details
.commit_check(io_or_string) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/junoser/cli.rb', line 10 def commit_check(io_or_string) config = Junoser::Input.new(io_or_string).read if Junoser::Display.display_set?(config) commit_check_display_set config else commit_check_structured config end end |
.display_set(io_or_string) ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/junoser/cli.rb', line 20 def display_set(io_or_string) config = Junoser::Input.new(io_or_string).read if Junoser::Display.display_set?(config) config else Junoser::Display::Set.new(config).transform end end |
.struct(io_or_string) ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/junoser/cli.rb', line 30 def struct(io_or_string) config = Junoser::Input.new(io_or_string).read if Junoser::Display.display_set?(config) Junoser::Display::Structure.new(config).transform else config end end |