Module: Snip::Commands

Defined in:
lib/snip/commands.rb

Instance Method Summary collapse

Instance Method Details

#add_snippet(args, options = {}) ⇒ Object



18
19
20
# File 'lib/snip/commands.rb', line 18

def add_snippet(args, options={})
  Snip::Command::Add.new(args, options).execute
end

#edit_snippet(args, options = {}) ⇒ Object



22
23
24
# File 'lib/snip/commands.rb', line 22

def edit_snippet(args, options={})
  Snip::Command::Edit.new(args, options).execute
end

#list_snippets(args = [], options = {}) ⇒ Object



10
11
12
# File 'lib/snip/commands.rb', line 10

def list_snippets(args=[], options={})
  Snip::Command::List.new(args, options).execute
end

#remove_snippet(args, options = {}) ⇒ Object



30
31
32
# File 'lib/snip/commands.rb', line 30

def remove_snippet(args, options={})
  Snip::Command::Remove.new(args, options).execute
end

#run_snippet(args, options = {}) ⇒ Object



26
27
28
# File 'lib/snip/commands.rb', line 26

def run_snippet(args, options={})
  Snip::Command::Run.new(args, options).execute
end

#show_snippet(args, options = {}) ⇒ Object



14
15
16
# File 'lib/snip/commands.rb', line 14

def show_snippet(args, options={})
  Snip::Command::Show.new(args, options).execute
end