godock: github.com/sqp/godock/services/Update Index | Files

package Update

import "github.com/sqp/godock/services/Update"

Package Update is an applet for Cairo-Dock to build and update the dock and applets.

Play with cairo-dock sources: download/update, compile, restart dock... Useful for developers, testers and users who want to stay up to date, or maybe on a distro without packages.

Index

Package Files

build.go config.go update.go

Constants

const (
    // EmblemVersion defines the position of the "new version" emblem.
    EmblemVersion = cdtype.EmblemBottomLeft

    // EmblemTarget defines the position of the "current target" emblem.
    EmblemTarget = cdtype.EmblemTopLeft
)
const (
    ActionNone = iota
    ActionShowDiff
    ActionShowVersions
    ActionCheckVersions
    ActionGrepTarget
    ActionCycleTarget
    ActionOpenFileTarget
    ActionToggleUserMode
    ActionToggleReload
    ActionToggleDiffStash
    ActionBuildTarget
    ActionUpdateAll
    ActionDownloadOthers
)

List of actions defined in this applet. Actions order in this list must match the order in defineActions. The reference in shortkey declaration must also match.

func NewApplet Uses

func NewApplet(base cdtype.AppBase, events *cdtype.Events) cdtype.AppInstance

NewApplet creates a new applet instance.

type Applet Uses

type Applet struct {
    cdtype.AppBase // Applet base and dock connection.
    // contains filtered or unexported fields
}

Applet defines a dock applet.

func (*Applet) BuildTarget Uses

func (app *Applet) BuildTarget() error

BuildTarget builds the current target.

func (*Applet) GrepTarget Uses

func (app *Applet) GrepTarget(search string)

GrepTarget searches the directory for the given string.

func (*Applet) Init Uses

func (app *Applet) Init(def *cdtype.Defaults, confLoaded bool)

Init load user configuration if needed and initialise applet.

func (*Applet) OpenFile Uses

func (app *Applet) OpenFile(file string)

OpenFile opens a file in the configured editor. If the path is relative, the target sources folder will be used.

func (*Applet) Versions Uses

func (app *Applet) Versions() []*versions.Repo

Versions returns current sources versions checked.

Package Update imports 18 packages (graph) and is imported by 1 packages. Updated 2017-11-30. Refresh now. Tools for package owners.