Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
[cli] replace deprecated commands with superceded ones (#4693)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinlanj committed Apr 24, 2023
1 parent cb48c8d commit 1a40db5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion packages/expo-cli/src/commands/credentials.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import chalk from 'chalk';
import type { Command } from 'commander';

import { applyAsyncActionProjectDir } from './utils/applyAsyncAction';
Expand All @@ -6,7 +7,7 @@ export default function (program: Command) {
applyAsyncActionProjectDir(
program
.command('credentials:manager [path]')
.description('Manage your credentials')
.description(`${chalk.yellow`Superseded`} by ${chalk.bold`eas credentials`} in eas-cli`)
.helpGroup('credentials')
.option('-p --platform <android|ios>', 'Platform: [android|ios]', /^(android|ios)$/i),
() => import('./credentialsManagerAsync'),
Expand Down
9 changes: 5 additions & 4 deletions packages/expo-cli/src/commands/fetch/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import chalk from 'chalk';
import type { Command } from 'commander';

import { applyAsyncActionProjectDir } from '../utils/applyAsyncAction';
Expand All @@ -6,7 +7,7 @@ export default function (program: Command) {
applyAsyncActionProjectDir(
program
.command('fetch:ios:certs [path]')
.description(`Download the project's iOS standalone app signing credentials`)
.description(`${chalk.yellow`Superseded`} by ${chalk.bold`eas credentials`} in eas-cli`)
.longDescription(
`Fetch this project's iOS certificates/keys and provisioning profile. Writes files to the PROJECT_DIR and prints passwords to stdout.`
)
Expand All @@ -17,7 +18,7 @@ export default function (program: Command) {
applyAsyncActionProjectDir(
program
.command('fetch:android:keystore [path]')
.description("Download the project's Android keystore")
.description(`${chalk.yellow`Superseded`} by ${chalk.bold`eas credentials`} in eas-cli`)
.longDescription(
"Fetch this project's Android Keystore. Writes Keystore to PROJECT_DIR/PROJECT_NAME.jks and prints passwords to stdout."
)
Expand All @@ -28,7 +29,7 @@ export default function (program: Command) {
applyAsyncActionProjectDir(
program
.command('fetch:android:hashes [path]')
.description("Compute and log the project's Android key hashes")
.description(`${chalk.yellow`Superseded`} by ${chalk.bold`eas credentials`} in eas-cli`)
.longDescription(
"Fetch this project's Android key hashes needed to set up Google/Facebook authentication. Note: if you are using Google Play signing, this app will be signed with a different key after publishing to the store, and you'll need to use the hashes displayed in the Google Play console."
)
Expand All @@ -39,7 +40,7 @@ export default function (program: Command) {
applyAsyncActionProjectDir(
program
.command('fetch:android:upload-cert [path]')
.description("Download the project's Android keystore")
.description(`${chalk.yellow`Superseded`} by ${chalk.bold`eas credentials`} in eas-cli`)
.longDescription(
"Fetch this project's upload certificate needed after opting in to app signing by Google Play or after resetting a previous upload certificate"
)
Expand Down
7 changes: 4 additions & 3 deletions packages/expo-cli/src/commands/push.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import chalk from 'chalk';
import type { Command } from 'commander';

import { applyAsyncActionProjectDir } from './utils/applyAsyncAction';
Expand All @@ -6,7 +7,7 @@ export default function (program: Command) {
applyAsyncActionProjectDir(
program
.command('push:android:upload [path]')
.description('Upload an FCM key for Android push notifications')
.description(`${chalk.yellow`Superseded`} by ${chalk.bold`eas credentials`} in eas-cli`)
.helpGroup('notifications')
.option('--api-key [api-key]', 'Server API key for FCM.'),
() => import('./push/pushAndroidUploadAsync')
Expand All @@ -15,15 +16,15 @@ export default function (program: Command) {
applyAsyncActionProjectDir(
program
.command('push:android:show [path]')
.description('Log the value currently in use for FCM notifications for this project')
.description(`${chalk.yellow`Superseded`} by ${chalk.bold`eas credentials`} in eas-cli`)
.helpGroup('notifications'),
() => import('./push/pushAndroidShowAsync')
);

applyAsyncActionProjectDir(
program
.command('push:android:clear [path]')
.description('Delete a previously uploaded FCM credential')
.description(`${chalk.yellow`Superseded`} by ${chalk.bold`eas credentials`} in eas-cli`)
.helpGroup('notifications'),
() => import('./push/pushAndroidClearAsync')
);
Expand Down

0 comments on commit 1a40db5

Please sign in to comment.