Documentation ¶
Index ¶
- func AddPluginToProject(pluginName string, pluginArgs string)
- func HandleInstallResult(result InstallResult, pluginName string, exitIfFailure bool) bool
- func HandleUpdateResult(result InstallResult, pluginName string, exitIfFailure bool) bool
- func InstallAllPlugins()
- func IsCompatiblePluginInstalled(pluginName string, isRunner bool) bool
- func PrintUpdateInfoWithDetails()
- func UninstallPlugin(pluginName string, uninstallVersion string)
- func UpdatePlugins()
- type GaugePlugin
- type InstallResult
- type UpdateFacade
- type UpdateInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPluginToProject ¶
AddPluginToProject adds the given plugin to current Gauge project. It installs the plugin if not installed.
func HandleInstallResult ¶ added in v0.4.0
func HandleInstallResult(result InstallResult, pluginName string, exitIfFailure bool) bool
HandleInstallResult handles the result of plugin Installation TODO: Merge both HandleInstallResult and HandleUpdateResult, eliminate boolean exitIfFailure
func HandleUpdateResult ¶ added in v0.4.0
func HandleUpdateResult(result InstallResult, pluginName string, exitIfFailure bool) bool
HandleUpdateResult handles the result of plugin Installation
func InstallAllPlugins ¶
func InstallAllPlugins()
InstallAllPlugins install the latest version of all plugins specified in Gauge project manifest file
func IsCompatiblePluginInstalled ¶ added in v0.4.0
IsCompatiblePluginInstalled checks if a plugin compatible to gauge is installed TODO: This always checks if latest installed version of a given plugin is compatible. This should also check for older versions.
func PrintUpdateInfoWithDetails ¶ added in v0.3.0
func PrintUpdateInfoWithDetails()
func UninstallPlugin ¶ added in v0.1.8
UninstallPlugin uninstall the given plugin of the given uninstallVersion If uninstallVersion is not specified, it uninstalls all the versions of given plugin
func UpdatePlugins ¶ added in v0.2.0
func UpdatePlugins()
UpdatePlugins updates all the currently installed plugins to its latest version
Types ¶
type GaugePlugin ¶ added in v0.4.0
type GaugePlugin struct { ID string Version string Description string PreInstall struct { Windows []string Linux []string Darwin []string } PostInstall struct { Windows []string Linux []string Darwin []string } PreUnInstall struct { Windows []string Linux []string Darwin []string } PostUnInstall struct { Windows []string Linux []string Darwin []string } GaugeVersionSupport version.VersionSupport }
GaugePlugin represents any plugin to Gauge. It can be an language runner or any other plugin.
type InstallResult ¶ added in v0.4.0
InstallResult represents the result of plugin installation
func InstallPlugin ¶
func InstallPlugin(pluginName, version string) InstallResult
InstallPlugin download and install the latest plugin(if version not specified) of given plugin name
func InstallPluginFromZipFile ¶ added in v0.4.0
func InstallPluginFromZipFile(zipFile string, pluginName string) InstallResult
InstallPluginFromZipFile installs plugin from given zip file
type UpdateFacade ¶ added in v0.3.0
type UpdateFacade struct {
// contains filtered or unexported fields
}
func (*UpdateFacade) BufferUpdateDetails ¶ added in v0.3.0
func (u *UpdateFacade) BufferUpdateDetails()
func (*UpdateFacade) PrintUpdateBuffer ¶ added in v0.3.0
func (u *UpdateFacade) PrintUpdateBuffer()