install

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: GPL-3.0, GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPluginToProject

func AddPluginToProject(pluginName string) error

AddPluginToProject adds the given plugin to current Gauge project.

func AllPlugins added in v0.9.0

func AllPlugins(silent bool)

AllPlugins install the latest version of all plugins specified in Gauge project manifest file

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

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
	Info    string
	Success bool
	Skipped bool
}

InstallResult represents the result of plugin installation

func InstallPluginFromZipFile added in v0.4.0

func InstallPluginFromZipFile(zipFile string, pluginName string) InstallResult

InstallPluginFromZipFile installs plugin from given zip file

func Plugin added in v0.9.0

func Plugin(pluginName, version string, silent bool) InstallResult

Plugin download and install the latest plugin(if version not specified) of given plugin name

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