cli

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(rootCmd *cobra.Command)

func GetFileLogger

func GetFileLogger(params *Params) *log.Logger

GetFileLogger returns a file logger, according to params.

func GetVersion

func GetVersion() string

func RootCmd

func RootCmd(fn RootFn) *cobra.Command

Types

type Params

type Params struct {
	LogLevel        am.LogLevel
	LogFile         string
	Version         bool
	ServerURL       string
	DebugAddr       string
	ImportData      string
	StartupMachine  string
	StartupView     string
	StartupTx       int
	EnableMouse     bool
	CleanOnConnect  bool
	SelectConnected bool
}

func ParseParams

func ParseParams(cmd *cobra.Command, _ []string) Params

type RootFn

type RootFn func(cmd *cobra.Command, args []string, params Params)

Jump to

Keyboard shortcuts

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