Module: Snip::Commands
- Defined in:
- lib/snip/commands.rb
Instance Method Summary collapse
- #add_snippet(args, options = {}) ⇒ Object
- #edit_snippet(args, options = {}) ⇒ Object
- #list_snippets(args = [], options = {}) ⇒ Object
- #remove_snippet(args, options = {}) ⇒ Object
- #run_snippet(args, options = {}) ⇒ Object
- #show_snippet(args, options = {}) ⇒ Object
Instance Method Details
#add_snippet(args, options = {}) ⇒ Object
18 19 20 |
# File 'lib/snip/commands.rb', line 18 def add_snippet(args, ={}) Snip::Command::Add.new(args, ).execute end |
#edit_snippet(args, options = {}) ⇒ Object
22 23 24 |
# File 'lib/snip/commands.rb', line 22 def edit_snippet(args, ={}) Snip::Command::Edit.new(args, ).execute end |
#list_snippets(args = [], options = {}) ⇒ Object
10 11 12 |
# File 'lib/snip/commands.rb', line 10 def list_snippets(args=[], ={}) Snip::Command::List.new(args, ).execute end |
#remove_snippet(args, options = {}) ⇒ Object
30 31 32 |
# File 'lib/snip/commands.rb', line 30 def remove_snippet(args, ={}) Snip::Command::Remove.new(args, ).execute end |