Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/commands/actors/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ export class ActorsPushCommand extends ApifyCommand<typeof ActorsPushCommand> {
command: 'apify push E2jjCZBezvAZnX8Rb --force',
},
{
description: 'Deploy without waiting for the build to finish.',
command: 'apify push --no-wait-for-finish',
description: 'Deploy without waiting for the build to finish (fire-and-forget).',
command: 'apify push --wait-for-finish=0',
},
];

Expand Down
9 changes: 9 additions & 0 deletions test/local/lib/command-framework/help.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable max-classes-per-file */
import stripAnsi from 'strip-ansi';

import { ActorsPushCommand } from '../../../../src/commands/actors/push.js';
import {
ApifyCommand,
type BuiltApifyCommand as _BuiltApifyCommand,
Expand Down Expand Up @@ -139,6 +140,14 @@ describe('Help rendering', () => {
expect(output).toContain('# Abort a running Actor gracefully.');
expect(output).toContain('$ apify runs abort <runId>');
});

test('renders a valid fire-and-forget example for apify push', () => {
registerCommandForHelpGeneration('apify', ActorsPushCommand);
const output = stripAnsi(renderHelpForCommand(ActorsPushCommand));

expect(output).toContain('$ apify push --wait-for-finish=0');
expect(output).not.toContain('--no-wait-for-finish');
});
});

describe('CommandWithSubcommandsHelp.render()', () => {
Expand Down
Loading