Comparing version 0.3.1 to 0.3.2
@@ -44,3 +44,3 @@ #!/usr/bin/env node | ||
// ---------------------------------------------------------------------------- | ||
_commander2.default.command('init [project] [template]').description(`Create a new project with the specified name, and save an alias to this folder.`).action((project, template) => { | ||
_commander2.default.command('init [project] [template]').description(`Create a new project with the specified name, and save an alias to this folder. If project is omitted, try to rehydrate a preexisting environment from a Biomefile.`).action((project, template) => { | ||
(0, _init2.default)(project, template).then(project => { | ||
@@ -47,0 +47,0 @@ console.log(`Created new project ${ project }. Add new vars with ${ _chalk2.default.green("biome add") } or fire it up with ${ _chalk2.default.green("biome use") }.`.replace('\n', '')); |
@@ -68,3 +68,3 @@ 'use strict'; | ||
if (project.length === 0) { | ||
if (!project || project.length === 0) { | ||
console.error("Project names need to be at least 1 character long."); | ||
@@ -71,0 +71,0 @@ throw new Error("Project names need to be at least 1 character long."); |
{ | ||
"name": "biome", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "A simple way to manage environment variables on a per-project basis", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -20,3 +20,3 @@ #!/usr/bin/env node | ||
.command('init [project] [template]') | ||
.description(`Create a new project with the specified name, and save an alias to this folder.`) | ||
.description(`Create a new project with the specified name, and save an alias to this folder. If project is omitted, try to rehydrate a preexisting environment from a Biomefile.`) | ||
.action((project, template) => { | ||
@@ -23,0 +23,0 @@ init(project, template).then(project => { |
@@ -38,3 +38,3 @@ import fs from 'fs-promise'; | ||
if (project.length === 0) { | ||
if (!project || project.length === 0) { | ||
console.error("Project names need to be at least 1 character long."); | ||
@@ -41,0 +41,0 @@ throw new Error("Project names need to be at least 1 character long."); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
219056