alias

package
v0.0.0-...-d71205c Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	Docroot string
	// contains filtered or unexported fields
}

Alias is a struct for managing a single Drush Alias

func NewAlias

func NewAlias(name, path, alias string) *Alias

NewAlias instantiates an Alias struct

func (*Alias) GetName

func (Alias *Alias) GetName() string

GetName gets the name field for an alias struct

func (*Alias) GetPath

func (Alias *Alias) GetPath() string

GetPath gets the path field for an alias struct

func (*Alias) GetStatus

func (Alias *Alias) GetStatus() bool

GetStatus returns the installation status of an alias struct

func (*Alias) GetURI

func (Alias *Alias) GetURI() string

GetURI gets the uri field for an alias struct

func (*Alias) Install

func (Alias *Alias) Install()

Install an alias from an alias struct

func (*Alias) SetName

func (Alias *Alias) SetName(value string)

SetName sets the name field for an alias struct

func (*Alias) SetPath

func (Alias *Alias) SetPath(value string)

SetPath sets the path field for an alias struct

func (*Alias) SetTemplate

func (a *Alias) SetTemplate(template string)

func (*Alias) SetURI

func (Alias *Alias) SetURI(value string)

SetURI sets the uri field for an alias struct

func (*Alias) Template

func (a *Alias) Template() string

func (*Alias) Uninstall

func (Alias *Alias) Uninstall()

Uninstall un-installs an alias from an alias struct

Jump to

Keyboard shortcuts

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