Update

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 18 Imported by: 0

Documentation

Overview

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

Constants

View Source
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
)
View Source
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.

Variables

This section is empty.

Functions

func NewApplet

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

NewApplet creates a new applet instance.

Types

type Applet

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

Applet defines a dock applet.

func (*Applet) BuildTarget

func (app *Applet) BuildTarget() error

BuildTarget builds the current target.

func (*Applet) GrepTarget

func (app *Applet) GrepTarget(search string)

GrepTarget searches the directory for the given string.

func (*Applet) Init

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

Init load user configuration if needed and initialise applet.

func (*Applet) OpenFile

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

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

Versions returns current sources versions checked.

Jump to

Keyboard shortcuts

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