@appcircle/codepush-cli 0.1.1-alpha.1 → 0.2.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -395,7 +395,7 @@ function loginWithExternalAuthentication(action, serverUrl, authUrl) {
395
395
  // The user has aborted the synchronous prompt (e.g.: via [CTRL]+[C]).
396
396
  return;
397
397
  }
398
- exports.sdk = getSdk(accessKey, null, CLI_HEADERS, serverUrl, authUrl);
398
+ exports.sdk = getSdk(null, accessKey, CLI_HEADERS, serverUrl, authUrl);
399
399
  return exports.sdk.isAuthenticated().then((isAuthenticated) => {
400
400
  if (isAuthenticated) {
401
401
  serializeConnectionInfo(accessKey, /*preserveAccessKeyOnLogout*/ false, serverUrl, authUrl);
@@ -112,13 +112,6 @@ function deploymentList(commandName, yargs) {
112
112
  demand: false,
113
113
  description: 'Output format to display your deployments with ("json" or "table")',
114
114
  type: "string",
115
- })
116
- .option("displayKeys", {
117
- alias: "k",
118
- default: false,
119
- demand: false,
120
- description: "Specifies whether to display the deployment keys",
121
- type: "boolean",
122
115
  });
123
116
  addCommonConfiguration(yargs);
124
117
  }
@@ -181,14 +174,6 @@ yargs
181
174
  .command("list", "Lists the apps associated with your account", (yargs) => appList("list", yargs))
182
175
  .command("ls", "Lists the apps associated with your account", (yargs) => appList("ls", yargs))
183
176
  .command("deployment-keys", "Lists the deployment keys for app", (yargs) => appDeploymentKeyList("deployment-keys", yargs))
184
- .command("transfer", "Transfer the ownership of an app to another account", (yargs) => {
185
- isValidCommand = true;
186
- yargs
187
- .usage(USAGE_PREFIX + " app transfer <appName> <email>")
188
- .demand(/*count*/ 2, /*max*/ 2) // Require exactly two non-option arguments
189
- .example("app transfer MyApp foo@bar.com", 'Transfers the ownership of app "MyApp" to an account with email "foo@bar.com"');
190
- addCommonConfiguration(yargs);
191
- })
192
177
  .check((argv, aliases) => isValidCommand); // Report unrecognized, non-hyphenated command category.
193
178
  addCommonConfiguration(yargs);
194
179
  })
@@ -222,7 +207,6 @@ yargs
222
207
  });
223
208
  addCommonConfiguration(yargs);
224
209
  })
225
- .command("clear", "Clear the release history associated with a deployment", (yargs) => deploymentHistoryClear("clear", yargs))
226
210
  .command("remove", "Remove a deployment from an app", (yargs) => deploymentRemove("remove", yargs))
227
211
  .command("rm", "Remove a deployment from an app", (yargs) => deploymentRemove("rm", yargs))
228
212
  .command("rename", "Rename an existing deployment", (yargs) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcircle/codepush-cli",
3
- "version": "0.1.1-alpha.1",
3
+ "version": "0.2.0-alpha.3",
4
4
  "description": "Management CLI for the CodePush service",
5
5
  "main": "./script/cli.js",
6
6
  "scripts": {
@@ -520,7 +520,7 @@ function loginWithExternalAuthentication(action: string, serverUrl?: string, aut
520
520
  return;
521
521
  }
522
522
 
523
- sdk = getSdk(accessKey, null, CLI_HEADERS, serverUrl, authUrl);
523
+ sdk = getSdk(null, accessKey, CLI_HEADERS, serverUrl, authUrl);
524
524
 
525
525
  return sdk.isAuthenticated().then((isAuthenticated: boolean): void => {
526
526
  if (isAuthenticated) {
@@ -130,13 +130,6 @@ function deploymentList(commandName: string, yargs: yargs.Argv): void {
130
130
  demand: false,
131
131
  description: 'Output format to display your deployments with ("json" or "table")',
132
132
  type: "string",
133
- })
134
- .option("displayKeys", {
135
- alias: "k",
136
- default: false,
137
- demand: false,
138
- description: "Specifies whether to display the deployment keys",
139
- type: "boolean",
140
133
  });
141
134
  addCommonConfiguration(yargs);
142
135
  }
@@ -212,15 +205,6 @@ yargs
212
205
  .command("list", "Lists the apps associated with your account", (yargs: yargs.Argv) => appList("list", yargs))
213
206
  .command("ls", "Lists the apps associated with your account", (yargs: yargs.Argv) => appList("ls", yargs))
214
207
  .command("deployment-keys","Lists the deployment keys for app", (yargs:yargs.Argv) => appDeploymentKeyList("deployment-keys", yargs))
215
- .command("transfer", "Transfer the ownership of an app to another account", (yargs: yargs.Argv) => {
216
- isValidCommand = true;
217
- yargs
218
- .usage(USAGE_PREFIX + " app transfer <appName> <email>")
219
- .demand(/*count*/ 2, /*max*/ 2) // Require exactly two non-option arguments
220
- .example("app transfer MyApp foo@bar.com", 'Transfers the ownership of app "MyApp" to an account with email "foo@bar.com"');
221
-
222
- addCommonConfiguration(yargs);
223
- })
224
208
  .check((argv: any, aliases: { [aliases: string]: string }): any => isValidCommand); // Report unrecognized, non-hyphenated command category.
225
209
 
226
210
  addCommonConfiguration(yargs);
@@ -257,9 +241,6 @@ yargs
257
241
 
258
242
  addCommonConfiguration(yargs);
259
243
  })
260
- .command("clear", "Clear the release history associated with a deployment", (yargs: yargs.Argv) =>
261
- deploymentHistoryClear("clear", yargs)
262
- )
263
244
  .command("remove", "Remove a deployment from an app", (yargs: yargs.Argv) => deploymentRemove("remove", yargs))
264
245
  .command("rm", "Remove a deployment from an app", (yargs: yargs.Argv) => deploymentRemove("rm", yargs))
265
246
  .command("rename", "Rename an existing deployment", (yargs: yargs.Argv) => {