Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "swag-ts", Short: "A tiny cli tool that generates typescript types based on a provided OpenAPI Specifications", Long: `Simply provide a OpenAPI Specification and swag-ts will generate typescript types for you. You can provide json or yaml definitions on your local filesystem or a remote url.`, Run: func(cmd *cobra.Command, args []string) { if version { fmt.Printf("swag-ts - v%s (%s)\n", config.Version, config.Date) return } if specPath != "" { printBanner() g := generator.NewGenerator(specPath, genType) err := g.GenerateTypes(output) if err != nil { log.Fatalf("Failed to generate types: %s", err) } return } _ = cmd.Help() }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.