mirror of
https://github.com/morten-olsen/mini-loader.git
synced 2026-02-08 01:36:26 +01:00
init
This commit is contained in:
17
packages/cli/src/commands/secrets/secrets.set.ts
Normal file
17
packages/cli/src/commands/secrets/secrets.set.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user