Documentation
¶
Index ¶
- Variables
- func NewAddCliCommand(addCli *AddCli) *cli.Command
- func NewAddJsonApiCommand(addJsonApi *AddJsonApi) *cli.Command
- func NewCreateCommand(createModule *Create) *cli.Command
- func NewInstallCommand(addModule *Install) *cli.Command
- func NewModuleCommand(create *Create, install *Install, addCli *AddCli, addJsonApi *AddJsonApi) *cli.Command
- type AddCli
- type AddCliTmplVars
- type AddJsonApi
- type AddJsonApiTmplVars
- type Create
- type Install
- type InstalledFileVars
- type TmplVars
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCannotInstallModule = errbuilder.New("cannot install the module").
WithHint("The install field in the manifest file should be a valid command running under 'go run'").Build()
View Source
var ErrCannotRunGoGetCommand = errbuilder.New("cannot run go get command").Build()
View Source
var ErrPackageIsEmpty = errbuilder.New("package is empty").
WithHint("Please provide a package for the module in the manifest file.").Build()
Functions ¶
func NewAddCliCommand ¶
func NewAddJsonApiCommand ¶
func NewAddJsonApiCommand(addJsonApi *AddJsonApi) *cli.Command
func NewCreateCommand ¶
func NewInstallCommand ¶
func NewModuleCommand ¶
Types ¶
type AddCliTmplVars ¶
type AddJsonApiTmplVars ¶
func (AddJsonApiTmplVars) IsBodyRequired ¶
func (v AddJsonApiTmplVars) IsBodyRequired() bool
type Create ¶
type Create struct {
// contains filtered or unexported fields
}
type InstalledFileVars ¶
type TmplVars ¶
type TmplVars struct {
Module module.ManifestModule
HasStorage bool
}
Click to show internal directories.
Click to hide internal directories.