How to use @oclif/command.run:
GitHub: apify/apify-cli
19 20 21 22 23 24 25 26 27
await command.run(['secrets:add', SECRET_KEY, 'mySecretValue']); } }); it('should work', async () => { await command.run(['secrets:rm', SECRET_KEY]); const secrets = getSecretsFile(); expect(secrets[SECRET_KEY]).to.eql(undefined); });
13
89
9
See more examples