lib/sample_cmdlet_patterns/commands/screen.rb
def execute(input: $stdin, output: $stdout)
        loop do
          case @subcommand
          when :gui
            gui
          when :attributes
            require_relative 'screen_attributes'
            subcmd = SampleCmdletPatterns::Commands::ScreenAttributes.new({})
          else
            break
          end
          @subcommand = subcmd&.execute(input: input, output: output)
        end
      end
# Execute Screen command taking input from a input stream
# and writing to output stream
#
# sample: output.puts 'OK'
Execute Screen command taking input from a input stream
and writing to output stream


Execute Screen command taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        loop do
          case @subcommand
          when :gui
            gui
          when :attributes
            require_relative 'screen_attributes'
            subcmd = SampleCmdletPatterns::Commands::ScreenAttributes.new({})
          else
            break
          end
          @subcommand = subcmd&.execute(input: input, output: output)
        end
      end
def execute ( input : $stdin , output : $stdout ) loop do case @subcommand when :gui gui when :attributes require_relative 'screen_attributes' subcmd = SampleCmdletPatterns :: Commands :: ScreenAttributes . new ( { } ) else break end @subcommand = subcmd &. execute ( input : input , output : output ) end end
Execute Screen command taking input from a input stream
and writing to output stream
Execute Screen command taking input from a input stream and writing to output stream
input
output