Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "execute <script.cdc>", Short: "Execute a script", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { code, err := ioutil.ReadFile(args[0]) if err != nil { cli.Exitf(1, "Failed to read script from %s", args[0]) } projectConf := new(cli.Config) if conf.Host == "" { projectConf = cli.LoadConfig() } cli.ExecuteScript(projectConf.HostWithOverride(conf.Host), code) }, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.