INNER CODE UNIT · TypeScript
cmd
akirarika/milkio · packages/cookbook/src/index.ts:64
const cmd = __router__.find((c) => c.commands.includes(params.command));
if (cmd) {
console.log(`co ${params.command}`);
console.log("");
console.log(`Aliases: ${cmd.commands.join(", ")}`);
console.log("");
console.log("Run without --help to execute this command.");
exit(0);
}
}
console.log("cookbook - project orchestration CLI");
console.log("");
console.log("Usage:");
console.log(" co Interactive command selector");
console.log(" co <command> [options] Run a built-in command");
console.log(" co <npm-script> Run an npm script from package.json");
console.log("");
console.log("Built-in commands:");