Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Create monopod binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomek Wiszniewski committed May 31, 2016
1 parent 91fc2e8 commit 0f8b690
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bin/monopod
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,27 @@

const commander = require('commander');
const customHelp = require('./_/customHelp');
const bold = require('chalk').bold;
const spawnSync = require('child_process').spawnSync;
// const monopod = require('..');
//
// const options = {};

const program = commander

// Command
.arguments('<command>',
`Available commands: ${['bootstrap'].map(bold).join(', ')}.`
)
.action((command) => {
spawnSync(
`${__dirname}/monopod-${command}`,
process.argv.slice(3),
{ stdio: 'inherit' }
);
process.exit();
})

// Parse options
.option('-h, --help',
'You’re looking at it.'
Expand Down

0 comments on commit 0f8b690

Please sign in to comment.