|
|
@@ -80,17 +80,18 @@ class Repository extends Subcommand {
|
|
80
|
80
|
this.usage_message =`
|
|
81
|
81
|
Usage: ${process.argv[1]} [options] repository command ...
|
|
82
|
82
|
|
|
83
|
|
- Commands :
|
|
84
|
|
- create repo\t\t\t-- Create a repository named "repo"
|
|
85
|
|
- info repo\t\t\t-- Get the repository metadata
|
|
86
|
|
- getacl repo\t\t\t-- Get the acls set for the repository
|
|
87
|
|
- list\t\t\t-- List the repositories created
|
|
88
|
|
- setacl repo user [acl]\t-- Set (or remove) an acl for "user" on "repo"
|
|
|
83
|
+ Commands:
|
|
|
84
|
+ create repo\t\tCreate a repository named "repo"
|
|
|
85
|
+ info repo\t\t\tGet the repository metadata
|
|
|
86
|
+ getacl repo\t\tGet the acls set for the repository
|
|
|
87
|
+ list\t\t\tList the repositories created
|
|
|
88
|
+ setacl repo user [acl]\tSet (or remove) an acl for "user" on "repo"
|
|
89
|
89
|
\t\t\t\tACL format:
|
|
90
|
90
|
\t\t\t\t\tr for read
|
|
91
|
91
|
\t\t\t\t\tw for write
|
|
92
|
|
- \t\t\t\t\ta for admin`;
|
|
93
|
|
- this.usage_message = this.usage_message.substr(3).replace(/\n\t\t/g, '\n');
|
|
|
92
|
+ \t\t\t\t\ta for admin
|
|
|
93
|
+ `;
|
|
|
94
|
+ this.usage_message = '\n ' + this.usage_message.substr(3).replace(/\n\t\t/g, '\n ');
|
|
94
|
95
|
}
|
|
95
|
96
|
|
|
96
|
97
|
create(params) {
|
|
|
@@ -161,10 +162,11 @@ class SSHKey extends Subcommand {
|
|
161
|
162
|
Usage: ${process.argv[1]} [options] sshkey command ...
|
|
162
|
163
|
|
|
163
|
164
|
Commands :
|
|
164
|
|
- upload [file]\t\t\t-- Upload a new ssh-key
|
|
165
|
|
- list\t\t\t\t-- List the ssh-keys
|
|
166
|
|
- delete [sshkey]\t\t\t-- Delete the sshkey with comment [sshkey]`;
|
|
167
|
|
- this.usage_message = this.usage_message.substr(3).replace(/\n\t\t/g, '\n');
|
|
|
165
|
+ upload [file]\t\t\tUpload a new ssh-key
|
|
|
166
|
+ list\t\t\t\tList the ssh-keys
|
|
|
167
|
+ delete [sshkey]\t\t\tDelete the sshkey with comment [sshkey]
|
|
|
168
|
+ `;
|
|
|
169
|
+ this.usage_message = '\n ' + this.usage_message.substr(3).replace(/\n\t\t/g, '\n ');
|
|
168
|
170
|
}
|
|
169
|
171
|
|
|
170
|
172
|
list() {
|