diff --git a/index.js b/index.js index 61e0ca0..3b80923 100755 --- a/index.js +++ b/index.js @@ -1,5 +1,7 @@ #!/usr/bin/env node +'use strict'; + var Command = require('commander').Command; var simpleGit = require('simple-git'); var path = require('path'); @@ -19,7 +21,7 @@ program .command('create [namespace]') .description('Initialize a Hydra App') .option('-f, --force', 'Force creation even if directory exists') - .action(function (namespace) { + .action(function (namespace, options) { namespace = namespace || 'my-hydra-app'; console.log('Creating a new Hydra app...'); @@ -58,7 +60,14 @@ program .then(function () { console.log('File structure created successfully.'); - // @TODO: Make necessary changes + /** + * @TODO: Make necessary changes + * - Improve logs + * -- Show progress + * -- Show next steps + * - Create .env file + * - Install dependencies + */ console.log('Cleaning up temporary files...'); return fs.remove(tempRepoPath); @@ -78,6 +87,7 @@ program .command('serve') .description('Start the Hydra server') .option('-s, --script