Documentation
¶
Overview ¶
Package themeinstall installs a built theme into a Umono project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCLIOutdated = errors.New("the CLI is out of date and cannot verify this theme; upgrade the CLI") ErrAlreadyInstalled = errors.New("the theme is already installed; use --force to reinstall it") ErrIncompatibleAPI = errors.New("the theme's Theme API version is outside the range of this Umono; use --allow-incompatible-api to install it anyway") )
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Force reinstalls an installed theme. The installed directory is not
// touched: the package goes to themes-pending/ and waits for the site
// owner's approval in the admin panel.
Force bool
// AllowIncompatibleAPI installs a theme whose theme-api-version is
// outside the range in umono.json. It does not cover ErrCLIOutdated.
AllowIncompatibleAPI bool
}
Options are the flags of umono theme install.
type Result ¶
Result is the outcome of Install.
func Install ¶
Install checks the built file and installs it into the Umono project projectDir as themes/{org}/{id}/{version}/. It runs the themecore checks of activation in the same order; the checks that need the database or the network are the runtime's. Nothing is written before every check has passed.
Click to show internal directories.
Click to hide internal directories.