Sha256: adfc52470f04b654281783e20989fcaed15e25fc22cb6c45a5feb620f2277b90
Contents?: true
Size: 929 Bytes
Versions: 3
Compression:
Stored size: 929 Bytes
Contents
# frozen_string_literal: true require "thor" module Boilercode module Commands class Snippets < Thor namespace :snippets desc "search", "Search for a snippet and attach it to clipboard" method_option :help, aliases: "-h", type: :boolean, desc: "Display usage information" def search(*) if options[:help] invoke :help, ["search"] else require_relative "snippets/search" Boilercode::Commands::Snippets::Search.new(options).execute end end desc "create", "Creates a snippet" method_option :help, aliases: "-h", type: :boolean, desc: "Display usage information" def create(*) if options[:help] invoke :help, ["create"] else require_relative "snippets/create" Boilercode::Commands::Snippets::Create.new(options).execute end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
boilercode-0.1.2 | lib/boilercode/commands/snippets.rb |
boilercode-0.1.1 | lib/boilercode/commands/snippets.rb |
boilercode-0.1.0 | lib/boilercode/commands/snippets.rb |