Sha256: f1929c509931c89983be6d467cfd17a49396aea900dd72c025ab2bf4015cab98

Contents?: true

Size: 442 Bytes

Versions: 7

Compression:

Stored size: 442 Bytes

Contents

require 'thor'

module Renote
  module Cli
    class Application < Thor

      desc 'into <FILE>', 'Shell appends keyboard input to <FILE> until ESCAPE key is pressed.'
      def into(target_file_path)
        @shell = Renote::Models::Shell.new
        open(target_file_path, 'a') { |handle|
          @shell.open handle
          while @shell.alive?
            @shell.run
          end
        }
        puts ''
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
renote-0.2.1 lib/renote/cli/application.rb
renote-0.2 lib/renote/cli/application.rb
renote-0.1.4 lib/renote/cli/application.rb
renote-0.1.3 lib/renote/cli/application.rb
renote-0.1.2 lib/renote/cli/application.rb
renote-0.1.1 lib/renote/cli/application.rb
renote-0.1.0 lib/renote/cli/application.rb