Skip to content

Commit

Permalink
Require force flag to use default account when no account name is spe…
Browse files Browse the repository at this point in the history
…cified in non-interactive mode
  • Loading branch information
mymattcarroll committed Aug 19, 2024
1 parent 6b08d9e commit 752ff42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/eas-cli/src/commands/project/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ export default class ProjectInit extends EasCommand {
if (!accountName) {
if (allAccounts.length === 1) {
accountName = allAccounts[0].name;
} else {
} else if (nonInteractive && force) {
accountName = allAccounts[0].name;
Log.log(`Using default account ${accountName} for non-interactive and force mode`);
} else if (!nonInteractive) {
const choices = ProjectInit.getAccountChoices(
actor,
accountNamesWhereUserHasSufficientPermissionsToCreateApp
Expand Down

0 comments on commit 752ff42

Please sign in to comment.