commands

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: BSD-3-Clause Imports: 26 Imported by: 1

Documentation

Overview

Package commands provides functionality for managing fyne packages and the build process

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	AddFlags()
	PrintHelp(string)
	Run(args []string)
}

Command defines the required functionality to provide a subcommand to the "fyne" tool.

func NewBundler

func NewBundler() Command

NewBundler returns a command that can bundle resources into a Go code.

func NewInstaller

func NewInstaller() Command

NewInstaller returns an install command that can install locally built Fyne apps.

func NewPackager

func NewPackager() Command

NewPackager returns a packager command that can wrap executables into full GUI app packages.

func NewReleaser

func NewReleaser() Command

NewReleaser returns a command that can adapt app packages for distribution

type Getter

type Getter struct {
	// contains filtered or unexported fields
}

Getter is the command that can handle downloading and installing Fyne apps to the current platform.

func NewGetter

func NewGetter() *Getter

NewGetter returns a command that can handle the download and install of GUI apps built using Fyne. It depends on a Go and C compiler installed at this stage and takes a single, package, parameter to identify the app.

func (*Getter) AddFlags

func (g *Getter) AddFlags()

AddFlags adds available flags to the current flags parser

func (*Getter) Get

func (g *Getter) Get(pkg string) error

Get automates the download and install of a named GUI app package.

func (*Getter) PrintHelp

func (g *Getter) PrintHelp(indent string)

PrintHelp prints help for this command when used in a command-line context

func (*Getter) Run

func (g *Getter) Run(args []string)

Run is the command-line version of the Get(pkg) command, the first of the passed arguments will be used as the package to get.

func (*Getter) SetIcon

func (g *Getter) SetIcon(path string)

SetIcon allows you to set the app icon path that will be used for the next Get operation.

Jump to

Keyboard shortcuts

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