lib/remocon/cli.rb in remocon-0.2.0 vs lib/remocon/cli.rb in remocon-0.3.0
- old
+ new
@@ -1,9 +1,15 @@
# frozen_string_literal: true
module Remocon
class CLI < ::Thor
+ desc "token", "Get your access token"
+ option :"service-json", type: :string, desc: "a file path to service account json"
+ def token
+ execute(Remocon::Command::GetToken)
+ end
+
desc "create", "Create a json to be pushed"
option :parameters, type: :string, desc: "Specify the filepath if you want to use a custom parameters file"
option :conditions, type: :string, desc: "Specify the filepath if you want to use a custom conditions file"
option :prefix, type: :string, desc: "the directory name which will contain project-related files"
option :id, type: :string, desc: "your project"
@@ -13,14 +19,15 @@
end
desc "push", "Upload remote configs based on a source json file"
option :source, type: :string, desc: "the filepath of your config json file"
option :etag, type: :string, desc: "the file path of etag"
- option :raw_etag, type: :string, desc: "the raw value of etag"
+ option :"raw-etag", type: :string, desc: "the raw value of etag"
option :prefix, type: :string, desc: "the directory name which will contain project-related files"
option :force, type: :boolean, default: false, desc: "force to ignore some warnings"
option :token, type: :string, desc: "access token to your project"
option :id, type: :string, desc: "your project id"
+ option :raw_etag, type: :string, hide: true, desc: "[Deprecated] the raw value of etag"
option :dest, type: :string, hide: true, desc: "[Deprecated] the same with --prefix"
def push
execute(Remocon::Command::Push)
end