@seasketch/geoprocessing
Version:
Geoprocessing and reporting framework for SeaSketch 2.0
21 lines (18 loc) • 437 B
text/typescript
import { program } from "commander";
import { init } from "./init.js";
program
.command("init")
.option(
"--gpVersion <string>",
"Git supported version string to install. Can be local file url",
)
.action(async function (options) {
try {
await init(options.gpVersion);
} catch (error) {
console.log("\n");
console.error(error);
process.exit(1);
}
});
program.parse(process.argv);