You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
672 B

#!/usr/bin/env node
import { program } from "commander";
import { build } from "./build";
import { init } from "./init";
program
.name("LDO-CLI")
.description("CLI to some JavaScript string utilities")
.version("3.0.1");
program
.command("build")
.description("Build contents of a shex folder into Shape Types")
.option("-i, --input <inputPath>", "Provide the input path", "./.shapes")
.option("-o, --output <outputPath>", "Provide the output path", "./.ldo")
.action(build);
program
.command("init")
.option("-d --directory>", "A parent directory for ldo files")
.description("Initializes a project for LDO.")
.action(init);
program.parse();