install

package
v0.8.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2017 License: GPL-3.0, GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPluginToProject

func AddPluginToProject(pluginName string, pluginArgs string)

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

func IsCompatiblePluginInstalled(pluginName string, isRunner bool) bool

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

func UninstallPlugin(pluginName string, uninstallVersion string)

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

type InstallResult struct {
	Error   error
	Warning string
	Success bool
	Skipped bool
}

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()

type UpdateInfo added in v0.3.0

type UpdateInfo struct {
	Name              string
	CompatibleVersion string
	Message           string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL