% bun i nuru
// index.ts
import { Command, Nuru } from "nuru";
// prints what you pass to it
const testDefaultCommand = new Command({
name: "test",
description: "a default test command",
}).set_handler((inst, args) => args.join(" "));
await new Nuru({
args: {
"-o": String,
"-d": String,
},
})
.register_commands([testDefaultCommand])
.handle();
Running this script with bun index.ts test hello world
will output hello world
.