Skip to main content
Module

x/dite/cli/add/command.ts

a little bit of a framework
Latest
File
import { Command } from "https://deno.land/x/cliffy@v0.24.2/command/mod.ts";import { additions } from "./mod.ts";
const addCommandBase = new Command() .name("add") .description("Easily add new helpers to your project") .example("Add vscode", "dite add vscode");
addCommandBase.action(() => addCommandBase.showHelp());
Object.keys(additions).forEach((addition) => { addCommandBase.command(addition, additions[addition]!);});
export const addCommand = addCommandBase;