Skip to content

Commit

Permalink
entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggishop committed Feb 26, 2025
1 parent 6f07552 commit 65ecb9c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cookbook/src/commands/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export {apply} from './apply';
export {generate} from './generate';
export {regenerate} from './regenerate';
export {render} from './render';
export {update} from './update';
export {validate} from './validate';
15 changes: 15 additions & 0 deletions cookbook/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* This file is the entry point for the cookbook CLI.
*/
import yargs from 'yargs/yargs';
import * as commands from './commands';

const cli = yargs(process.argv.slice(2))
.command(commands.generate)
.command(commands.render)
.command(commands.apply)
.command(commands.validate)
.command(commands.regenerate)
.command(commands.update);

cli.showHelpOnFail(true).demandCommand().help().argv;

0 comments on commit 65ecb9c

Please sign in to comment.