Sha256: 5c170bcbace4dd5a29a0a402ab48608d16408cd1a12a68d872268bad2bdf60d3
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true require 'thor' module Uffizzi class CLI < Thor require_relative 'cli/common' class_option :help, type: :boolean, aliases: HELP_MAPPINGS desc 'version', 'Show Version' def version require_relative 'version' puts Uffizzi::VERSION end desc 'login', 'Login into Uffizzi' method_option :user, required: true, aliases: '-u' method_option :hostname, required: true, aliases: '-h' def login require_relative 'cli/login' Login.new(options).run end desc 'logout', 'Logout from Uffizzi' def logout(help = nil) return Cli::Common.show_manual(:logout) if help || options[:help] require_relative 'cli/logout' Logout.new.run end desc 'projects', 'projects' def projects require_relative 'cli/projects' Projects.new.run end desc 'config', 'config' def config(command, property = nil, value = nil) require_relative 'cli/config' Config.new.run(command, property, value) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uffizzi-cli-0.1.4.3 | lib/uffizzi/cli.rb |
uffizzi-cli-0.1.4.2 | lib/uffizzi/cli.rb |
uffizzi-cli-0.1.3 | lib/uffizzi/cli.rb |