Skip to content

Commit

Permalink
Merge pull request #185 from PhyrexTsai/master
Browse files Browse the repository at this point in the history
v0.0.45
  • Loading branch information
PhyrexTsai authored Sep 23, 2019
2 parents 124cda2 + dd5d089 commit 380cabe
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/components/Contracts/Deploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function builder(yargs) {
alias: 'u',
type: 'string',
describe: 'URL of the template contract'
}).example('kaizen contracts deploy -u https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20').demandOption(['url'], '').epilogue('Please enter the url of the template contract\n\n' + 'Support contract template:\n\n'.underline.yellow + 'ERC20'.underline.yellow + ' - ERC20 Token Standard, ' + 'https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20'.underline.yellow + '\n' + 'ERC721'.underline.yellow + ' - ERC721 Token Standard, ' + 'https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC721'.underline.yellow + '\n');
}).example('kaizen contracts deploy -u https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20').demandOption(['url'], '').epilogue('Please enter the url of the template contract\n\n' + 'Support contract template:\n\n'.underline.yellow + 'Chainlink'.underline.yellow + ' - Chainlink Oracle Service, ' + 'https://github.com/PortalNetwork/kaizen-contracts/tree/master/Chainlink'.underline.yellow + '\n' + 'ERC20'.underline.yellow + ' - ERC20 Token Standard, ' + 'https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20'.underline.yellow + '\n' + 'ERC721'.underline.yellow + ' - ERC721 Token Standard, ' + 'https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC721'.underline.yellow + '\n');
}

function handler(_x) {
Expand Down
2 changes: 1 addition & 1 deletion build/components/Contracts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require('colors');
function builder(yargs) {
require('./Deploy')(yargs);

return yargs.example('kaizen contracts deploy').demandCommand(1, '').epilogue('KAIZEN support smart contracts:'.underline.yellow + 'You can develop, test, deploy smart contract though KAIZEN CLI\n\n' + 'Support contract template:\n\n'.underline.yellow + 'ERC20'.underline.yellow + ' - ERC20 Token Standard, ' + 'https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20'.underline.yellow + '\n' + 'ERC721'.underline.yellow + ' - ERC721 Token Standard, ' + 'https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC721'.underline.yellow + '\n\n' + 'NOTE: ' + 'Please make sure use '.gray + '\'kaizen config set --key <KEY> --value <VALUE>\''.yellow + ' to setup the configuration before you deploy smart contracts.'.gray);
return yargs.example('kaizen contracts deploy').demandCommand(1, '').epilogue('KAIZEN support smart contracts:'.underline.yellow + 'You can develop, test, deploy smart contract though KAIZEN CLI\n\n' + 'Support contract template:\n\n'.underline.yellow + 'Chainlink'.underline.yellow + ' - Chainlink Oracle Service, ' + 'https://github.com/PortalNetwork/kaizen-contracts/tree/master/Chainlink'.underline.yellow + '\n' + 'ERC20'.underline.yellow + ' - ERC20 Token Standard, ' + 'https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20'.underline.yellow + '\n' + 'ERC721'.underline.yellow + ' - ERC721 Token Standard, ' + 'https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC721'.underline.yellow + '\n\n' + 'NOTE: ' + 'Please make sure use '.gray + '\'kaizen config set --key <KEY> --value <VALUE>\''.yellow + ' to setup the configuration before you deploy smart contracts.'.gray);
}

function handler(_x) {
Expand Down
4 changes: 4 additions & 0 deletions build/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ require('./Platform/Login')(yargs);
require('./Platform/Logout')(yargs);

require('./Platform/Nodes')(yargs);
/** Oracle Service **/


require('./Oracle')(yargs);

yargs.demandCommand(1, '').epilogue('Welcome to KAIZEN\n\n'.yellow + 'KAIZEN Framework\n'.underline.yellow + 'Not sure how to use?\n'.gray + 'Use ' + '\'kaizen create -t react -n myproject\''.yellow + ' to start a new project.\n' + 'Try ' + '\'kaizen install -u <GITHUB_URL>\''.yellow + ' to download example project.\n\n' + 'KAIZEN Platform (Alpha)\n'.underline.yellow + 'Interact with KAIZEN Platform, please login first.\n'.grey + 'Use ' + '\'kaizen login\''.yellow + ' to login KAIZEN Platform.\n\n' + 'More information and documentation, please visit:\n' + 'https://github.com/PortalNetwork/kaizen-cli'.yellow.underline + '\n');
module.exports = yargs;
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kaizen-cli",
"version": "0.0.44",
"version": "0.0.45",
"bin": {
"kaizen": "kaizen"
},
Expand Down
2 changes: 2 additions & 0 deletions src/components/Contracts/Deploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function builder(yargs) {
.epilogue(
'Please enter the url of the template contract\n\n' +
'Support contract template:\n\n'.underline.yellow +
'Chainlink'.underline.yellow + ' - Chainlink Oracle Service, ' +
'https://github.com/PortalNetwork/kaizen-contracts/tree/master/Chainlink'.underline.yellow + '\n' +
'ERC20'.underline.yellow + ' - ERC20 Token Standard, ' +
'https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20'.underline.yellow + '\n' +
'ERC721'.underline.yellow + ' - ERC721 Token Standard, ' +
Expand Down
2 changes: 2 additions & 0 deletions src/components/Contracts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ function builder(yargs) {
'KAIZEN support smart contracts:'.underline.yellow +
'You can develop, test, deploy smart contract though KAIZEN CLI\n\n' +
'Support contract template:\n\n'.underline.yellow +
'Chainlink'.underline.yellow + ' - Chainlink Oracle Service, ' +
'https://github.com/PortalNetwork/kaizen-contracts/tree/master/Chainlink'.underline.yellow + '\n' +
'ERC20'.underline.yellow + ' - ERC20 Token Standard, ' +
'https://github.com/PortalNetwork/kaizen-contracts/tree/master/ERC20'.underline.yellow + '\n' +
'ERC721'.underline.yellow + ' - ERC721 Token Standard, ' +
Expand Down
3 changes: 3 additions & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ require('./Platform/Login')(yargs);
require('./Platform/Logout')(yargs);
require('./Platform/Nodes')(yargs);

/** Oracle Service **/
require('./Oracle')(yargs);

yargs
.demandCommand(1, '')
.epilogue(
Expand Down

0 comments on commit 380cabe

Please sign in to comment.