Demo entry 6756935

golang

   

Submitted by anonymous on Aug 06, 2018 at 08:33
Language: Go. Code size: 454 Bytes.

func setupAPP() *cli.App {
	app := cli.NewApp()
	app.Usage = "Ontology CLI"
	app.Action = startOntology
	app.Version = config.Version
	app.Copyright = "Copyright in 2018 The Ontology Authors"
	app.Commands = []cli.Command{
		cmd.AccountCommand,
		cmd.InfoCommand,
		cmd.AssetCommand,
		cmd.ContractCommand,
		cmd.ImportCommand,
		cmd.ExportCommand,
	}
	app.Flags = []cli.Flag{
		//common setting
		utils.ConfigFlag,
		utils.LogLevelFlag,

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).