Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
#!/usr/bin/env node
// This rule is confused by us being TypeScript (the package.json file points at
// our JS output, so we are not technically a "binary" in package.json).
/* eslint-disable node/shebang */
import yargs from "yargs";
import UI from "console-ui";
import { homedir } from "os";
import { join } from "path";
const ui = new UI();
yargs
.scriptName("cardstack")
.command(
"start",
"Start the Cardstack environment",
args => {
return args.option("dir", {
alias: "d",
describe: "path to your local running cardstack",
type: "string",
default: join(homedir(), ".cardstack"),
});
},
async function(argv) {
let run = await import("../run");