Sha256: e034653ec339e2de2b62fa75541f81b9ad8c0257b83189c4e5c856ad732a6e6a
Contents?: true
Size: 843 Bytes
Versions: 2
Compression:
Stored size: 843 Bytes
Contents
# frozen_string_literal: true require 'thor' module GistUpdater class Commands < Thor package_name 'gist_updater' default_task :update class_option :yaml, type: :string, aliases: :y, desc: 'User definition YAML file', default: 'gist_updater.yml' class_option :user, type: :string, aliases: :u, desc: 'GitHub username' class_option :token, type: :string, aliases: :t, desc: 'GitHub personal access token' class_option :debug, type: :boolean, aliases: :d, desc: 'Debug mode', default: false desc 'update', 'Update your Gist files (default)' def update Updater.new(options).update end desc 'version', 'Display version' def version puts VERSION end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gist_updater-0.3.0 | lib/gist_updater/commands.rb |
gist_updater-0.2.0 | lib/gist_updater/commands.rb |