cli

package
v2.6.0-beta8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: GPL-3.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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