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
11 12 13 14 15 16 17 18 19 |
# File 'lib/junoser/cli.rb', line 11 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
21 22 23 24 25 26 27 28 29 |
# File 'lib/junoser/cli.rb', line 21 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
31 32 33 34 35 36 37 38 39 |
# File 'lib/junoser/cli.rb', line 31 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 |