Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "plush", Short: "A brief description of your application", RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return errors.New("you must pass in at least 1 plush file") } for _, a := range args { b, err := ioutil.ReadFile(a) if err != nil { return err } err = plush.RunScript(string(b), plush.NewContext()) if err != nil { return err } } return nil }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.