cli

package
v0.0.0-...-608740e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

Types

type CLI

type CLI struct {
	Globals
}

type Config

type Config struct {
	DataFile string `yaml:"data-file"`
}

type ConfigCmd

type ConfigCmd struct {
}

func (*ConfigCmd) Run

func (cmd *ConfigCmd) Run(globals *Globals) error

type DashboardCmd

type DashboardCmd struct {
}

func (*DashboardCmd) Run

func (cmd *DashboardCmd) Run(globals *Globals) error

type Globals

type Globals struct {
	Version   VersionFlag  `name:"version" short:"v" help:"Print version information and quit"`
	Config    ConfigCmd    `cmd:"" help:"Display current config" default:"0"`
	Dashboard DashboardCmd `cmd:""`
}

type VersionFlag

type VersionFlag string

func (VersionFlag) BeforeApply

func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error

func (VersionFlag) Decode

func (v VersionFlag) Decode(ctx *kong.DecodeContext) error

func (VersionFlag) IsBool

func (v VersionFlag) IsBool() bool

Jump to

Keyboard shortcuts

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