Skip to content

Commit

Permalink
[eas-cli] Add getters
Browse files Browse the repository at this point in the history
Added getters for end outcome from string flag value

See: https://linear.app/expo/issue/ENG-9175/update-oclif-in-eas-cli
  • Loading branch information
radoslawkrzemien committed Dec 1, 2023
1 parent ab634e4 commit bdfcd6c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/eas-cli/src/rollout/actions/EndRollout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ export enum EndOutcome {
REVERT = 'revert',
}

export function maybeGetEndOutcome(endOutcomeString: string | undefined): EndOutcome | undefined {
if (!endOutcomeString) {
return undefined;
}
return Object.values(EndOutcome).find(endOutcome => endOutcome === endOutcomeString);
}

export type GeneralOptions = {
privateKeyPath: string | null;
};
Expand Down

0 comments on commit bdfcd6c

Please sign in to comment.