lib/sample_cmdlet_patterns/commands/editor_open.rb
# Execute EditorOpen subcommand taking input from
# a input stream and writing to output stream
#
# sample: output.puts 'OK'
Execute EditorOpen subcommand taking input from
a input stream and writing to output stream


Execute EditorOpen subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        heading 'open hello.rb in your chosen editor'
        editor.open('hello.rb')
        heading 'open content in your chosen editor'
        editor.open(content: 'some text')
        heading 'open hello.rb in vim'
        editor.open('hello.rb', command: :nano)
        :gui
      end
def execute ( input : $stdin , output : $stdout ) heading 'open hello.rb in your chosen editor' editor . open ( 'hello.rb' ) heading 'open content in your chosen editor' editor . open ( content : 'some text' ) heading 'open hello.rb in vim' editor . open ( 'hello.rb' , command : :nano ) :gui end
Execute EditorOpen subcommand taking input from
a input stream and writing to output stream
Execute EditorOpen subcommand taking input from a input stream and writing to output stream
# Currently does not support vscode
input
output