Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateBindingsOptions ¶
type GenerateBindingsOptions struct { Silent bool `name:"silent" description:"Silent mode"` ModelsFilename string `name:"m" description:"The filename for the models file" default:"models.ts"` TS bool `name:"ts" description:"Generate Typescript bindings"` TSPrefix string `description:"The prefix for the typescript names" default:""` TSSuffix string `description:"The postfix for the typescript names" default:""` UseInterfaces bool `name:"i" description:"Use interfaces instead of classes"` ProjectDirectory string `name:"p" description:"The project directory" default:"."` UseIDs bool `name:"ids" description:"Use IDs instead of names in the binding calls"` OutputDirectory string `name:"d" description:"The output directory" default:"frontend/bindings"` }
type Init ¶
type Init struct { Common PackageName string `name:"p" description:"Package name" default:"main"` TemplateName string `name:"t" description:"Name of built-in template to use, path to template or template url" default:"vanilla"` ProjectName string `name:"n" description:"Name of project" default:""` ProjectDir string `name:"d" description:"Project directory" default:"."` Quiet bool `name:"q" description:"Suppress output to console"` List bool `name:"l" description:"List templates"` ProductName string `description:"The name of the product" default:"My Product"` ProductDescription string `description:"The description of the product" default:"My Product Description"` ProductVersion string `description:"The version of the product" default:"0.1.0"` ProductCompany string `description:"The company of the product" default:"My Company"` ProductCopyright string `description:"The copyright notice" default:"\u00a9 now, My Company"` ProductComments string `description:"Comments to add to the generated files" default:"This is a comment"` ProductIdentifier string `description:"The product identifier, e.g com.mycompany.myproduct"` }
type PluginInit ¶
type PluginInit struct { Name string `name:"n" description:"Name of plugin" default:"example_plugin"` Description string `name:"d" description:"Description of plugin" default:"Example plugin"` PackageName string `name:"p" description:"Package name for plugin" default:""` OutputDir string `name:"o" description:"Output directory" default:"."` Quiet bool `name:"q" description:"Suppress output to console"` }
Click to show internal directories.
Click to hide internal directories.