Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
codekeyz committed Nov 25, 2024
1 parent 6b26a59 commit f502765
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions packages/globe_cli/lib/src/commands/unlink_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,14 @@ class UnlinkCommand extends BaseGlobeCommand {

if (scope.hasScope()) {
scope.unlink();
logger.success(
'Project unlinked successfully. To link this project again, run ${cyan.wrap('globe link')}.',
);
return ExitCode.success.code;
}

if (scope.workspace.isNotEmpty) {
} else if (scope.workspace.isNotEmpty) {
final selected = await scope.selectScopeOrLinkNewScope(canLinkNew: false);
scope.removeScope(selected);
logger.success(
'Project unlinked successfully. To link this project again, run ${cyan.wrap('globe link')}.',
);
return ExitCode.success.code;
}

return ExitCode.software.code;
logger.success(
'Project unlinked successfully. To link this project again, run ${cyan.wrap('globe link')}.',
);
return ExitCode.success.code;
}
}

0 comments on commit f502765

Please sign in to comment.