Documentation
¶
Index ¶
- Variables
- func NewAddCliCommand(addCli *AddCli) *cli.Command
- func NewAddJsonApiCommand(addJsonApi *AddJsonApi) *cli.Command
- func NewCreateCommand(createModule *Create) *cli.Command
- func NewInitStorageCommand(cmd *InitStorage) *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 InitStorage
- type Install
- type InstalledFileVars
- type TmplVars
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCannotSaveLocalManifest = errsys.New("cannot save a local manifest", "Cannot save a local manifesto") ErrCannotCreateDirectory = errsys.New("cannot create a directory", "Cannot create a directory") ErrCannotCreateModuleFile = errsys.New("cannot create a module file", "Cannot create a module file") ErrCannotInstallStorage = errsys.New("cannot install the storage feature", "Cannot install the storage feature") ErrCannotInstallGraphQL = errsys.New("cannot install the graphql feature", "Cannot install the graphql feature") )
View Source
var ErrCannotInstallModule = errors.NewWithHint(
"cannot install the module",
"The install field in the manifest file should be a valid command running under 'go run'",
)
View Source
var ErrCannotRunGoGetCommand = errors.NewWithHint(
"cannot run go get command",
"Cannot run go get command. Ensure that 'go get' command is available in your system. Install Golang if necessary https://go.dev/doc/install.",
)
View Source
var ErrPackageIsEmpty = errors.NewWithHint(
"package is empty",
"Please provide a package for the module in the manifest file.",
)
Functions ¶
func NewAddCliCommand ¶
func NewAddJsonApiCommand ¶
func NewAddJsonApiCommand(addJsonApi *AddJsonApi) *cli.Command
func NewCreateCommand ¶
func NewInitStorageCommand ¶ added in v0.1.3
func NewInitStorageCommand(cmd *InitStorage) *cli.Command
func NewInstallCommand ¶
func NewModuleCommand ¶
func NewModuleCommand( create *Create, install *Install, addCli *AddCli, addJsonApi *AddJsonApi, initStorage *InitStorage, ) *cli.Command
Types ¶
type AddCliTmplVars ¶
type AddJsonApiTmplVars ¶
func (AddJsonApiTmplVars) IsBodyRequired ¶
func (v AddJsonApiTmplVars) IsBodyRequired() bool
type Create ¶
type Create struct {
// contains filtered or unexported fields
}
type InitStorage ¶ added in v0.1.3
type InitStorage struct {
// contains filtered or unexported fields
}
func NewInitStorage ¶ added in v0.1.3
func NewInitStorage(installStorage *action.InstallStorage) *InitStorage
type InstalledFileVars ¶
Click to show internal directories.
Click to hide internal directories.