Skip to content

Commit

Permalink
fix: output of push id for push command
Browse files Browse the repository at this point in the history
  • Loading branch information
SmoliyY committed Dec 15, 2023
1 parent 9f72bae commit 68e9eb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/blue-harvest/commands/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function handlePush(argv: PushOptions, config: Config) {
);

if (!verbose) {
process.stdout.write(JSON.stringify({ pushId: id }, null, 2));
process.stdout.write(`${id}\n`);
}

verbose &&
Expand Down
5 changes: 5 additions & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ yargs
.hide('author')
.hide('message')
.hide('isMainBranch')
.hide('verbose')
.hide('commitSha')
.hide('commitUrl')
.hide('namespace')
.hide('repository')
.deprecateOption('batch-id', 'use --job-id')
.implies('job-id', 'batch-size')
.implies('batch-id', 'batch-size')
Expand Down

0 comments on commit 68e9eb2

Please sign in to comment.