cli

package
v2.6.0-beta14 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(
	pl platforms.Platform,
	defaultConfig config.Values,
	writers []io.Writer,
) *config.Instance

Setup initializes the user config and logging. Returns a user config object.

Types

type Flags

type Flags struct {
	Write      *string
	Read       *bool
	Run        *string
	Launch     *string
	API        *string
	Version    *bool
	Config     *bool
	ShowLoader *string
	ShowPicker *string
	Reload     *bool
}

func SetupFlags

func SetupFlags() *Flags

SetupFlags defines all common CLI flags between platforms.

func (*Flags) Post

func (f *Flags) Post(cfg *config.Instance, _ platforms.Platform)

Post actions all remaining common flags that require the environment to be set up. Logging is allowed.

func (*Flags) Pre

func (f *Flags) Pre(pl platforms.Platform)

Pre runs flag parsing and actions any immediate flags that don't require environment setup. Add any custom flags before running this.

Jump to

Keyboard shortcuts

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