Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ program

program
.command('new <name>')
.option('-s, --scaffold <scaffold>', 'The framework to use. Options include react, angular, vuejs, nextjs and node.')
.option('-s, --scaffold <scaffold>', 'The framework to use. Options include react, angular, vuejs, nextjs, node and android.')
.option('-r, --restURL <restURL>', 'The rest URL to use. default: https://rest.bitbox.earth/v1/')
.option('-e, --environment <environment>', 'environment of running BITBOX instance. Ex: production, staging. (Default: development)')
.description(`create a new BITBOX application`)
Expand Down Expand Up @@ -70,6 +70,8 @@ program
repo = 'https://github.com/Bitcoin-com/bitbox-scaffold-react.git';
} else if(scaffold === 'vue') {
repo = 'https://github.com/Bitcoin-com/bitbox-scaffold-vue.git';
} else if(scaffold === 'android') {
repo = 'https://github.com/Bitcoin-com/bitbox-scaffold-android.git';
} else {
console.log(chalk.red(`Scaffold ${scaffold} not supported`));
process.exit(1)
Expand Down