cli

package
v0.0.0-...-9aed8fb Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cli handles processing command-line arguments and doing the thing that has been requested.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessArgs

func ProcessArgs()

ProcessArgs is the main entrypoint for the command-line program.

Types

type BuildCmd

type BuildCmd struct {
	Fetch   bool   `arg:"--fetch,-f" help:"Do a git fetch"`
	Force   bool   `arg:"--force,-F" help:"Force building even if the requested version is already installed"`
	Jobs    int    `arg:"--jobs,-j" help:"Desired number of make jobs"`
	Staging bool   `arg:"--staging" help:"Apply wine staging patches before building"`
	Verbose bool   `arg:"--verbose" help:"Print all build output"`
	Win32   bool   `arg:"--win32" help:"Build a 32-bit wine instead of 64"`
	WineVer string `arg:"positional,required" help:"The desired wine version to build. Should be a valid git tag string."`
}

type CfgCmd

type CfgCmd struct {
	EnvName     string `arg:"positional,required" help:"Configure a wine env (no args to print the config)"`
	NoRender    bool   `arg:"--no-render" help:"Don't render template variables in the cfg (they are always rendered at runtime)"`
	NoUnchanged bool   `arg:"--no-unchanged" help:"Don't display values that are unchanged by the user"`
	Save        bool   `arg:"--save" help:"Save any changes to the configuration from CLI arguments"`
}

type CompletionCmd

type CompletionCmd struct {
	Bash   bool `arg:"--bash" help:"Generate completions for bash"`
	Fish   bool `arg:"--fish" help:"Generate completions for fish"`
	Stdout bool `arg:"--stdout" help:"Print to stdout instead of writing files"`
}

type GeWineCmd

type GeWineCmd struct {
	Version string `arg:"positional,required" help:"The desired GE Wine version to install. See 'wem list --ge-wine' for available versions."`
}

type HelpCmd

type HelpCmd struct{}

type InitCmd

type InitCmd struct {
	EnvName string `arg:"positional,required" help:"The name of the env to init"`
}

type InstallCmd

type InstallCmd struct {
	DryRun  bool   `arg:"--dry-run" help:"Print out a string representing what wem wants to run"`
	EnvName string `arg:"positional,required" help:"The name of the env you wish to run"`
}

type ListCmd

type ListCmd struct {
	Dxvk      bool `arg:"--dxvk" help:"List DXVK versions"`
	Env       bool `arg:"--env" help:"List available wine envs"`
	Installed bool `arg:"--installed" help:"List installed versions"`
	GeWine    bool `arg:"--ge-wine" help:"List GE GeWine versions"`
	Wine      bool `arg:"--wine" help:"List wine versions"`
	Vkd3d     bool `arg:"--vkd3d" help:"List VKD3D-Proton versions"`
}

type ManCmd

type ManCmd struct {
	Out string `arg:"--out" help:"Optional path to write the manpage to"`
}

type RunCmd

type RunCmd struct {
	DryRun      bool     `arg:"--dry-run" help:"Print out a string representing what wem wants to run"`
	EnvName     string   `arg:"positional,required" help:"The name of the env you wish to run"`
	Exec        string   `arg:"--exec" help:"Run an arbitrary executable with an env's context" placeholder:"CMD"`
	ExecArgs    []string `arg:"--exec-args" help:"Arguments to pass to an executable with --exec" placeholder:"ARGS"`
	SkipInstall bool     `arg:"--skip-install" help:"Skip any configured installation"`
	SkipRun     bool     `arg:"--skip-run" help:"Skip the configured run exe"`
	Winecfg     bool     `arg:"--winecfg" help:"Run winecfg with an env's context"`
	Winetricks  bool     `arg:"--winetricks" help:"Run winetricks with an env's context"`
}

type TutorialCmd

type TutorialCmd struct{}

Jump to

Keyboard shortcuts

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