kubricate
Version:
A TypeScript framework for building reusable, type-safe Kubernetes infrastructure — without the YAML mess.
18 lines (15 loc) • 505 B
text/typescript
import type { CommandModule } from 'yargs';
import { secretApplyCommand } from './apply.js';
import { secretValidateCommand } from './validate.js';
export const secretCommand: CommandModule = {
command: 'secret [command]',
describe: 'Manage secrets with SecretManager',
builder: yargs =>
yargs
// Add subcommands
.command(secretValidateCommand)
.command(secretApplyCommand)
// Show help if no subcommand is provided
.demandCommand(1, ''),
handler: () => {},
};