How to use the console-ui function in console-ui

To help you get started, we’ve selected a few console-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cardstack / cardstack / packages / cli / bin / cardstack.ts View on Github external
#!/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();

    "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");


common interface for abstracting a console ui

Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis

Similar packages