Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "ellcrys", Short: "Ellcrys is a smart contract execution platform built on existing, tried and trusted technologies.", Long: `Ellcrys is a smart contract execution platform built on existing, tried and trusted technologies.`, Run: func(cmd *cobra.Command, args []string) { showVersion, _ := cmd.Flags().GetBool("version") if showVersion { fmt.Println("Cocoon version 0.5.0") return } fmt.Println(cmd.Long) fmt.Println("") cmd.Usage() }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func UsageError ¶
UsageError displays Usage error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.