Sha256: 9f535500ae1e0dde49d9dbc60d73089b2118d5e8819a37e50252768e760dafe0
Contents?: true
Size: 1008 Bytes
Versions: 3
Compression:
Stored size: 1008 Bytes
Contents
# frozen_string_literal: true require "thor" module Boilercode module Commands class Bookmarks < Thor namespace :bookmarks desc "search QUERY", "Search through your bookmarks and add selected bookmark to clipboard" method_option :help, aliases: "-h", type: :boolean, desc: "Display usage information" def search if options[:help] invoke :help, ["search"] else require_relative "bookmarks/search" Boilercode::Commands::Bookmarks::Search.new(options).execute end end desc "create", "Takes URL from clipboard and saves it to your BoilerCode bookmarks" method_option :help, aliases: "-h", type: :boolean, desc: "Display usage information" def create(*) if options[:help] invoke :help, ["create"] else require_relative "bookmarks/create" Boilercode::Commands::Bookmarks::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/bookmarks.rb |
boilercode-0.1.1 | lib/boilercode/commands/bookmarks.rb |
boilercode-0.1.0 | lib/boilercode/commands/bookmarks.rb |