Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tiny fix
  • Loading branch information
codekeyz committed Feb 14, 2024
commit 4269f34281bad600c13f87c1ff2c5a09844ceae6
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,15 @@ class TokenCreateCommand extends BaseGlobeCommand {
}

final validated = await scope.validate();

final projects = await selectProjects(
validated.organization,
logger: logger,
api: api,
scope: scope,
ids: projectIds,
);
if (projects.isEmpty) {
return ExitCode.software.code;
}

final projectNames = projects.map((e) => cyan.wrap(e.slug)).join(', ');

final createTokenProgress =
logger.progress('Creating Token for $projectNames');

Expand Down
1 change: 1 addition & 0 deletions packages/globe_cli/lib/src/utils/prompts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ Future<List<Project>> selectProjects(
'No projects selected, you need to select atleast one project.',
);
logger.err('No projects selected.');
exitOverride(1);
}

return selections.map((e) => projectsBySlug[e]!).toList();
Expand Down