Documentation
¶
Index ¶
- func AddDependencies(dependencies map[string][]string)
- func Astyle(source, options string) (string, error)
- type Command
- type Config
- type Context
- type GenerateCmd
- type InitCmd
- type InstallCmd
- type ListCmd
- type ListTemplatesCmd
- type NewCmd
- type Package
- type Shrinkwrap
- type Target
- type Template
- type UpgradeCmd
- type Variable
- type WatchCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDependencies ¶
Types ¶
type GenerateCmd ¶
type GenerateCmd struct {
Config string `arg:"" help:"The code generation configuration file" type:"existingfile" optional:""`
// contains filtered or unexported fields
}
func (*GenerateCmd) Run ¶
func (c *GenerateCmd) Run(ctx *Context) error
type InitCmd ¶ added in v0.1.3
type InitCmd struct {
Template string `arg:"" help:"The template for the project to create." default:"@apexlang/basic"`
Dir string `type:"existingdir" help:"The project directory" default:"."`
Spec string `type:"existingfile" help:"An optional specification file to copy into the project"`
Variables map[string]string `arg:"" help:"Variables to pass to the template." optional:""`
// contains filtered or unexported fields
}
type InstallCmd ¶
type InstallCmd struct {
Location string `arg:"" help:"The NPM module or Github repository of the module to install."`
Release string `arg:"" help:"The release tag to install." optional:""`
// contains filtered or unexported fields
}
func (*InstallCmd) Run ¶
func (c *InstallCmd) Run(ctx *Context) error
type ListCmd ¶ added in v0.1.7
type ListCmd struct {
Templates ListTemplatesCmd `cmd:"templates" help:"Lists installed templates"`
}
type ListTemplatesCmd ¶ added in v0.1.7
type ListTemplatesCmd struct {
}
func (*ListTemplatesCmd) Run ¶ added in v0.1.7
func (c *ListTemplatesCmd) Run(ctx *Context) error
type NewCmd ¶
type NewCmd struct {
Template string `arg:"" help:"The template for the project to create."`
Dir string `arg:"" help:"The project directory"`
Spec string `type:"existingfile" help:"An optional specification file to copy into the project"`
Variables map[string]string `arg:"" help:"Variables to pass to the template." optional:""`
}
type Shrinkwrap ¶ added in v0.1.11
type Target ¶
type Target struct {
Module string `json:"module" yaml:"module"`
VisitorClass string `json:"visitorClass" yaml:"visitorClass"`
IfNotExists bool `json:"ifNotExists,omitempty" yaml:"ifNotExists,omitempty"`
Executable bool `json:"executable,omitempty" yaml:"executable,omitempty"`
Config map[string]interface{} `json:"config,omitempty" yaml:"config,omitempty"`
RunAfter []Command `json:"runAfter" yaml:"runAfter"`
}
type UpgradeCmd ¶
type UpgradeCmd struct {
}
func (*UpgradeCmd) Run ¶
func (c *UpgradeCmd) Run(ctx *Context) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.