Class: Commandc::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/commandc/cli.rb

Overview

Inherits from Thor in order to create CLI

Author:

  • “Brandon Pittman”

Instance Method Summary collapse

Instance Method Details

#copyObject



30
31
32
33
34
35
36
37
# File 'lib/commandc/cli.rb', line 30

def copy
  output = Commandc::Text.new(
           options[:text],
           options[:to],
           options[:open]
  )
  output.copy
end