commands

package
v3.0.0-...-c98e9ca Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllAssets = map[string][]byte{
	"info.json":          Info,
	"wails.exe.manifest": Manifest,
	"appicon.png":        AppIcon,
	"icons.ico":          IconsIco,
	"Info.plist":         InfoPlist,
	"Info.dev.plist":     InfoDevPlist,
	"icons.icns":         IconsIcns,
}
View Source
var AppIcon []byte
View Source
var IconsIcns []byte
View Source
var IconsIco []byte
View Source
var Info []byte
View Source
var InfoDevPlist []byte
View Source
var InfoPlist []byte
View Source
var Manifest []byte

Functions

func Build

func Build(_ *flags.Build) error

func Defaults

func Defaults(options *DefaultsOptions) error

func GenerateBindings

func GenerateBindings(options *GenerateBindingsOptions) error

func GenerateIcons

func GenerateIcons(options *IconsOptions) error

func GenerateSyso

func GenerateSyso(options *SysoOptions) error

func Init

func Init(options *flags.Init) error

func RunTask

func RunTask(options *RunTaskOptions, otherArgs []string) error

Types

type DefaultsOptions

type DefaultsOptions struct {
	Dir string `description:"The directory to generate the files into"`
}

type GenerateBindingsOptions

type GenerateBindingsOptions struct {
	Silent           bool   `name:"silent" description:"Silent mode"`
	ModelsFilename   string `name:"m" description:"The filename for the models file" default:"models.ts"`
	BindingsFilename string `name:"b" description:"The filename for the bindings file" default:"bindings.js"`
	ProjectDirectory string `name:"p" description:"The project directory" default:"."`
	OutputDirectory  string `name:"d" description:"The output directory" default:"."`
}

type IconsOptions

type IconsOptions struct {
	Example         bool   `description:"Generate example icon file (appicon.png) in the current directory"`
	Input           string `description:"The input image file"`
	Sizes           string `description:"The sizes to generate in .ico file (comma separated)" default:"256,128,64,48,32,16"`
	WindowsFilename string `description:"The output filename for the Windows icon" default:"icon.ico"`
	MacFilename     string `description:"The output filename for the Mac icon bundle" default:"icons.icns"`
}

type RunTaskOptions

type RunTaskOptions struct {
	Name             string `pos:"1"`
	Help             bool   `name:"h" description:"shows Task usage"`
	Init             bool   `name:"i" description:"creates a new Taskfile.yml"`
	List             bool   `name:"list" description:"tasks with description of current Taskfile"`
	ListAll          bool   `name:"list-all" description:"lists tasks with or without a description"`
	ListJSON         bool   `name:"json" description:"formats task list as json"`
	Status           bool   `name:"status" description:"exits with non-zero exit code if any of the given tasks is not up-to-date"`
	Force            bool   `name:"f" description:"forces execution even when the task is up-to-date"`
	Watch            bool   `name:"w" description:"enables watch of the given task"`
	Verbose          bool   `name:"v" description:"enables verbose mode"`
	Silent           bool   `name:"s" description:"disables echoing"`
	Parallel         bool   `name:"p" description:"executes tasks provided on command line in parallel"`
	Dry              bool   `name:"dry" description:"compiles and prints tasks in the order that they would be run, without executing them"`
	Summary          bool   `name:"summary" description:"show summary about a task"`
	ExitCode         bool   `name:"x" description:"pass-through the exit code of the task command"`
	Dir              string `name:"dir" description:"sets directory of execution"`
	EntryPoint       string `name:"taskfile" description:"choose which Taskfile to run."`
	OutputName       string `name:"output" description:"sets output style: [interleaved|group|prefixed]"`
	OutputGroupBegin string `name:"output-group-begin" description:"message template to print before a task's grouped output"`
	OutputGroupEnd   string `name:"output-group-end" description:"message template to print after a task's grouped output"`
	Color            bool   `name:"c" description:"colored output. Enabled by default. Set flag to false or use NO_COLOR=1 to disable" default:"true"`
	Concurrency      int    `name:"C" description:"limit number tasks to run concurrently"`
	Interval         int64  `name:"interval" description:"interval to watch for changes"`
}

type SysoOptions

type SysoOptions struct {
	Example  bool   `description:"Generate example manifest & info files"`
	Manifest string `description:"The manifest file"`
	Info     string `description:"The info.json file"`
	Icon     string `description:"The icon file"`
	Out      string `description:"The output filename for the syso file"`
	Arch     string `description:"The target architecture"`
}

func (*SysoOptions) Default

func (i *SysoOptions) Default() *SysoOptions

Jump to

Keyboard shortcuts

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