Update help text for colors on mac (#337)

Signed-off-by: NIKHIL E GUPTA <ngupta@symbridge.com>
This commit is contained in:
nikhil550 2020-09-17 14:27:21 -04:00 committed by GitHub
parent f497793e57
commit ed598f733b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,15 +23,15 @@ function printHelp() {
println "Usage: "
println " network.sh <Mode> [Flags]"
println " Modes:"
println " \e[0;32mup\e[0m - bring up fabric orderer and peer nodes. No channel is created"
println " \e[0;32mup createChannel\e[0m - bring up fabric network with one channel"
println " \e[0;32mcreateChannel\e[0m - create and join a channel after the network is created"
println " \e[0;32mdeployCC\e[0m - deploy the asset transfer basic chaincode on the channel or specify"
println " \e[0;32mdown\e[0m - clear the network with docker-compose down"
println " \e[0;32mrestart\e[0m - restart the network"
println " \033[0;32mup\033[0m - bring up fabric orderer and peer nodes. No channel is created"
println " \033[0;32mup createChannel\033[0m - bring up fabric network with one channel"
println " \033[0;32mcreateChannel\033[0m - create and join a channel after the network is created"
println " \033[0;32mdeployCC\033[0m - deploy the asset transfer basic chaincode on the channel or specify"
println " \033[0;32mdown\033[0m - clear the network with docker-compose down"
println " \033[0;32mrestart\033[0m - restart the network"
println
println " Flags:"
println " Used with \e[0;32mnetwork.sh up\e[0m, \e[0;32mnetwork.sh createChannel\e[0m:"
println " Used with \033[0;32mnetwork.sh up\033[0m, \033[0;32mnetwork.sh createChannel\033[0m:"
println " -ca <use CAs> - create Certificate Authorities to generate the crypto material"
println " -c <channel name> - channel name to use (defaults to \"mychannel\")"
println " -s <dbtype> - the database backend to use: goleveldb (default) or couchdb"
@ -40,7 +40,7 @@ function printHelp() {
println " -i <imagetag> - the tag to be used to launch the network (defaults to \"latest\")"
println " -cai <ca_imagetag> - the image tag to be used for CA (defaults to \"${CA_IMAGETAG}\")"
println " -verbose - verbose mode"
println " Used with \e[0;32mnetwork.sh deployCC\e[0m"
println " Used with \033[0;32mnetwork.sh deployCC\033[0m"
println " -c <channel name> - deploy chaincode to channel"
println " -ccn <name> - the short name of the chaincode to deploy: basic (default),ledger, private, sbe, secured"
println " -ccl <language> - the programming language of the chaincode to deploy: go (default), java, javascript, typescript"
@ -54,10 +54,10 @@ function printHelp() {
println " -h - print this message"
println
println " Possible Mode and flag combinations"
println " \e[0;32mup\e[0m -ca -c -r -d -s -i -verbose"
println " \e[0;32mup createChannel\e[0m -ca -c -r -d -s -i -verbose"
println " \e[0;32mcreateChannel\e[0m -c -r -d -verbose"
println " \e[0;32mdeployCC\e[0m -ccn -ccl -ccv -ccs -ccp -cci -r -d -verbose"
println " \033[0;32mup\033[0m -ca -c -r -d -s -i -verbose"
println " \033[0;32mup createChannel\033[0m -ca -c -r -d -s -i -verbose"
println " \033[0;32mcreateChannel\033[0m -c -r -d -verbose"
println " \033[0;32mdeployCC\033[0m -ccn -ccl -ccv -ccs -ccp -cci -r -d -verbose"
println
println " Taking all defaults:"
println " network.sh up"