We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e141b01 commit 7c3ad62Copy full SHA for 7c3ad62
1 file changed
lib/github/auth/cli.rb
@@ -3,6 +3,9 @@
3
module Github::Auth
4
# Command Line Interface for parsing and executing commands
5
class CLI < Thor
6
+ class_option :host, type: :string
7
+ class_option :path, type: :string
8
+
9
option :users, type: :array, required: true
10
option :command, type: :string
11
desc 'add', 'Add GitHub users to authorized keys'
@@ -104,11 +107,11 @@ def keys_file(options = {})
104
107
end
105
108
106
109
def keys_file_path
- Github::Auth::KeysFile::DEFAULT_PATH
110
+ options[:path] || Github::Auth::KeysFile::DEFAULT_PATH
111
112
113
def github_hostname
- Github::Auth::KeysClient::DEFAULT_HOSTNAME
114
+ options[:host] || Github::Auth::KeysClient::DEFAULT_HOSTNAME
115
116
117
0 commit comments