ctx

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAtLeastDefault

func AssertAtLeastDefault(c *cli.Context) error

func AssertAutoSync

func AssertAutoSync(c *cli.Context) error

func AssertAutoUpdate added in v1.4.0

func AssertAutoUpdate(c *cli.Context) error

func AssertConfigExists

func AssertConfigExists(c *cli.Context) error

func AssertSaveIfNotError

func AssertSaveIfNotError(c *cli.Context) error

func ChainedActions

func ChainedActions(actions ...func(c *cli.Context) error) func(c *cli.Context) error

func SetupContext

func SetupContext(c *cli.Context) error

Types

type Context

type Context struct {
	Config     *config.Config
	ConfigFile string
	LastErr    error
	Debug      bool
}

func GetContext

func GetContext(c *cli.Context) *Context

Jump to

Keyboard shortcuts

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