Files
mini-loader/packages/cli/src/commands/secrets/secrets.set.ts
Morten Olsen bf980bd159 init
2024-01-11 10:56:27 +01:00

18 lines
339 B
TypeScript

import { Command } from 'commander';
import { createClient } from '../../client/client.js';
const set = new Command('set');
set
.argument('<id>')
.argument('[value]')
.action(async (id, value) => {
const client = await createClient();
await client.secrets.set.mutate({
id,
value,
});
});
export { set };