lib/sample_cmdlet_patterns/commands/font.rb
def execute(input: $stdin, output: $stdout)
        loop do
          case @subcommand
          when :gui
            gui
          when :d3
            require_relative 'font_d3'
            subcmd = SampleCmdletPatterns::Commands::FontD3.new({})
          when :block
            require_relative 'font_block'
            subcmd = SampleCmdletPatterns::Commands::FontBlock.new({})
          when :doom
            require_relative 'font_doom'
            subcmd = SampleCmdletPatterns::Commands::FontDoom.new({})
          when :standard
            require_relative 'font_standard'
            subcmd = SampleCmdletPatterns::Commands::FontStandard.new({})
          when :starwars
            require_relative 'font_starwars'
            subcmd = SampleCmdletPatterns::Commands::FontStarwars.new({})
          when :straight
            require_relative 'font_straight'
            subcmd = SampleCmdletPatterns::Commands::FontStraight.new({})
          else
            break
          end
          @subcommand = subcmd&.execute(input: input, output: output)
        end
      end
# Execute Font command taking input from a input stream
# and writing to output stream
#
# sample: output.puts 'OK'
Execute Font command taking input from a input stream
and writing to output stream


Execute Font 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 :d3
            require_relative 'font_d3'
            subcmd = SampleCmdletPatterns::Commands::FontD3.new({})
          when :block
            require_relative 'font_block'
            subcmd = SampleCmdletPatterns::Commands::FontBlock.new({})
          when :doom
            require_relative 'font_doom'
            subcmd = SampleCmdletPatterns::Commands::FontDoom.new({})
          when :standard
            require_relative 'font_standard'
            subcmd = SampleCmdletPatterns::Commands::FontStandard.new({})
          when :starwars
            require_relative 'font_starwars'
            subcmd = SampleCmdletPatterns::Commands::FontStarwars.new({})
          when :straight
            require_relative 'font_straight'
            subcmd = SampleCmdletPatterns::Commands::FontStraight.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 :d3 require_relative 'font_d3' subcmd = SampleCmdletPatterns :: Commands :: FontD3 . new ( { } ) when :block require_relative 'font_block' subcmd = SampleCmdletPatterns :: Commands :: FontBlock . new ( { } ) when :doom require_relative 'font_doom' subcmd = SampleCmdletPatterns :: Commands :: FontDoom . new ( { } ) when :standard require_relative 'font_standard' subcmd = SampleCmdletPatterns :: Commands :: FontStandard . new ( { } ) when :starwars require_relative 'font_starwars' subcmd = SampleCmdletPatterns :: Commands :: FontStarwars . new ( { } ) when :straight require_relative 'font_straight' subcmd = SampleCmdletPatterns :: Commands :: FontStraight . new ( { } ) else break end @subcommand = subcmd &. execute ( input : input , output : output ) end end
Execute Font command taking input from a input stream
and writing to output stream
Execute Font command taking input from a input stream and writing to output stream
input
output