Sha256: 897406fc05c6abd30099854650c49b9a8ab444ce4431f8bd6abbc73e9553e1af
Contents?: true
Size: 730 Bytes
Versions: 2
Compression:
Stored size: 730 Bytes
Contents
# frozen_string_literal: true require 'thor' module Uffizzi class CLI < Thor desc 'version', 'show version' def version require_relative 'version' puts Uffizzi::VERSION end desc 'login', 'login' 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 '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uffizzi-cli-0.1.2 | lib/uffizzi/cli.rb |
uffizzi-cli-0.1.0 | lib/uffizzi/cli.rb |