Skip to content

Commit

Permalink
mark command as hidden and prompt user before starting any action
Browse files Browse the repository at this point in the history
  • Loading branch information
szdziedzic committed Apr 23, 2024
1 parent f4335e5 commit e15b190
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/eas-cli/src/commands/onboarding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ import Log from '../log';
import { runGitCloneAsync, runGitPushAsync } from '../onboarding/git';
import { installDependenciesAsync } from '../onboarding/installDependencies';
import { ExpoConfigOptions, getPrivateExpoConfig } from '../project/expoConfig';
import { confirmAsync } from '../prompts';
import { Actor } from '../user/User';
import GitClient from '../vcs/clients/git';

export default class Onboarding extends EasCommand {
static override hidden = true;

static override description = 'start/continue onboarding process';

static override flags = {};
Expand Down Expand Up @@ -46,8 +49,14 @@ export default class Onboarding extends EasCommand {
Log.log('👋 Welcome to Expo!');
Log.log('🚀 We will continue your onboarding process in EAS CLI');
Log.log();
Log.log("🔎 Let's start by cloning your project from GitHub and installing dependencies.");
Log.log(
`🔎 Let's start by cloning your project ${githubUsername}/${githubRepositoryName} from GitHub and installing dependencies.`
);
Log.log();
const shouldContinue = await confirmAsync({ message: 'Do you want to continue?' });
if (!shouldContinue) {
throw new Error("Aborting, run the command again once you're ready.");
}

await runGitCloneAsync({
githubUsername,
Expand Down

0 comments on commit e15b190

Please sign in to comment.