mirror of
https://github.com/morten-olsen/mini-loader.git
synced 2026-02-08 01:36:26 +01:00
18 lines
339 B
TypeScript
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 };
|