Skip to content

Commit

Permalink
add version to ignite title (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip authored Oct 5, 2017
1 parent f3daaf2 commit 61af5b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/electrode-ignite/cli/ignite.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"use strict";

const { PromptMenu } = require("ignite-core");
const { PromptMenu, logger } = require("ignite-core");
const Path = require("path");
const Pkg = require("../package.json");
const chalk = require("chalk");

const menuFiles = [
"check-node-npm",
Expand All @@ -19,13 +21,15 @@ const menu = menuFiles.map(m => {
return require(m)();
});

const title = `Electrode Ignite ${chalk.magenta(Pkg.version)}`;
const promptMenu = new PromptMenu({
title: "Electrode Ignite",
title,
menu
});

if (process.argv.length <= 2) {
promptMenu.show();
} else {
logger.log(title);
promptMenu.clap();
}

0 comments on commit 61af5b4

Please sign in to comment.