Documentation ¶
Index ¶
- func AddProject(cfg *core.Config, name string) error
- func EditProject(cfg *core.Config, args []string) error
- func GetLibrary(config *core.Config) error
- func GetTemplate(name string) error
- func GetVocab(config *core.Config, args []string) error
- func InstallStyle(config *core.Config, args []string) error
- func ListConfig(config *core.Config, path string) error
- func ListDir(config *core.Config, path string) error
- func RemoveProject(cfg *core.Config, name string) error
- func UpdateVocab(config *core.Config, args []string) error
- type Meta
- type Style
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProject ¶
AddProject adds a new project to the current StylesPath.
func EditProject ¶
EditProject renames a project from the current StylesPath.
func GetLibrary ¶
GetLibrary returns the latest style library.
func GetTemplate ¶
GetTemplate prints tamplate for the given extension point.
func InstallStyle ¶
InstallStyle installs the given style using its download link.
func ListConfig ¶
ListConfig prints Vale's active configuration.
func RemoveProject ¶
RemoveProject deletes a project from the current StylesPath.
Types ¶
type Meta ¶
type Meta struct { Author string `json:"author"` Coverage float64 `json:"coverage"` Description string `json:"description"` Email string `json:"email"` Feed string `json:"feed"` Lang string `json:"lang"` License string `json:"license"` Name string `json:"name"` Sources []string `json:"sources"` URL string `json:"url"` Vale string `json:"vale_version"` Version string `json:"version"` }
Meta represents an installed style's meta data.
type Style ¶
type Style struct { // User-provided fields. Author string `json:"author"` Description string `json:"description"` Feed string `json:"feed"` Homepage string `json:"homepage"` Name string `json:"name"` URL string `json:"url"` // Generated fields. HasUpdate bool `json:"has_update"` InLibrary bool `json:"in_library"` Installed bool `json:"installed"` }
Style represents an externally-hosted style.
Click to show internal directories.
Click to hide internal directories.