Skip to content

Commit

Permalink
add platform control for cli runner
Browse files Browse the repository at this point in the history
  • Loading branch information
BrkYld committed Apr 7, 2024
1 parent 8d472f7 commit 438a9e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/command-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ const handleOrganizationCommand = async (command: ProgramCommand, params: any) =
};

const handlePublishCommand = async (command: ProgramCommand, params: any) => {
if(params.platform && !['ios','android'].includes(params.platform)){
throw new ProgramError(`Invalid platform(${params.platform}). Supported platforms: ios, android`);
}
if (command.fullCommandName === `${PROGRAM_NAME}-publish-profile-create`) {
const profileRes = await createPublishProfile({ platform: params.platform, name: params.name });
commandWriter(CommandTypes.PUBLISH, {
Expand Down

0 comments on commit 438a9e3

Please sign in to comment.