lib/junoser/cli.rb in junoser-0.3.8 vs lib/junoser/cli.rb in junoser-0.3.9

- old
+ new

@@ -16,14 +16,26 @@ commit_check_structured config end end def display_set(io_or_string) - Junoser::Display::Set.new(io_or_string).transform + config = Junoser::Input.new(io_or_string).read + + if Junoser::Display.display_set?(config) + config + else + Junoser::Display::Set.new(config).transform + end end def struct(io_or_string) - Junoser::Display::Structure.new(io_or_string).transform + config = Junoser::Input.new(io_or_string).read + + if Junoser::Display.display_set?(config) + Junoser::Display::Structure.new(config).transform + else + config + end end private