本站源代码
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

23 Zeilen
721B

  1. // Package cli provides a minimal framework for creating and organizing command line
  2. // Go applications. cli is designed to be easy to understand and write, the most simple
  3. // cli application can be written as follows:
  4. // func main() {
  5. // cli.NewApp().Run(os.Args)
  6. // }
  7. //
  8. // Of course this application does not do much, so let's make this an actual application:
  9. // func main() {
  10. // app := cli.NewApp()
  11. // app.Name = "greet"
  12. // app.Usage = "say a greeting"
  13. // app.Action = func(c *cli.Context) error {
  14. // println("Greetings")
  15. // return nil
  16. // }
  17. //
  18. // app.Run(os.Args)
  19. // }
  20. package cli
  21. //go:generate python ./generate-flag-types cli -i flag-types.json -o flag_generated.go
上海开阖软件有限公司 沪ICP备12045867号-1