Discover Packages
github.com/wapc/cli
pkg
commands
package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Jun 8, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 26
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
Schema string `json:"schema" yaml:"schema"`
Config map[string ]interface{} `json:"config,omitempty" yaml:"config,omitempty"`
Generates map[string ]Target `json:"generates" yaml:"generates"`
}
type GenerateCmd struct {
Config string `arg:"" help:"The code generation configuration file" type:"existingfile"`
}
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:""`
}
type NewCmd struct {
Template string `arg:"" help:"The template for the project to create."`
Dir string `arg:"" help:"The project directory"`
Variables map[string ]string `arg:"" help:"Variables to pass to the template." optional:""`
}
type Target struct {
Module string `json:"module" yaml:"module"`
VisitorClass string `json:"visitorClass" yaml:"visitorClass"`
IfNotExists bool `json:"ifNotExists,omitempty" yaml:"ifNotExists,omitempty"`
Config map[string ]interface{} `json:"config,omitempty" yaml:"config,omitempty"`
}
type Template struct {
Name string `json:"name" yaml:"name"`
Description string `json:"description" yaml:"description"`
Variables []Variable `json:"variables" yaml:"variables"`
}
type UpgradeCmd struct {
}
type Variable struct {
Name string `json:"name" yaml:"name"`
Description string `json:"description" yaml:"description"`
Prompt string `json:"prompt" yaml:"prompt"`
Default string `json:"default" yaml:"default"`
Required bool `json:"required" yaml:"required"`
Loop bool `json:"loop" yaml:"loop"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.