How to use @oclif/command

Comprehensive @oclif/command code examples:

How to use @oclif/command.run:

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);
});