Skip to content

Instantly share code, notes, and snippets.

@nerdic-coder
Created June 2, 2018 19:34
Show Gist options
  • Save nerdic-coder/3310d9dd9e2050615a5ac43662b3e2d7 to your computer and use it in GitHub Desktop.
Save nerdic-coder/3310d9dd9e2050615a5ac43662b3e2d7 to your computer and use it in GitHub Desktop.
cli-dependecies.js
#! /usr/bin/env node
var shell = require("shelljs");
const path = require('path');
// The path to the installation directory if this tool
var cliPath = path.join(path.dirname(__filename), '..');
// Check that a command is given
if (!process.argv[2]) {
shell.echo('Please tell me what you want me todo!');
shell.exit(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment