cli

package
v0.0.0-...-ec28f46 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type Cli

type Cli struct {
	*grumble.App
	// contains filtered or unexported fields
}

func (*Cli) PrettyPrint

func (c *Cli) PrettyPrint(i interface{})

func (*Cli) PrintSuccess

func (c *Cli) PrintSuccess(str string)

func (*Cli) Prompt

func (c *Cli) Prompt(prompt string, a ...any) (string, error)

func (*Cli) PromptNil

func (c *Cli) PromptNil(prompt string, a ...any) (*string, error)

func (*Cli) PromptUint64

func (c *Cli) PromptUint64(prompt string, a ...any) (uint64, error)

func (*Cli) SetApiKey

func (c *Cli) SetApiKey(apiKey string) error

type Config

type Config struct {
	ApiKey   string `json:"api_key"`
	LogLevel string `json:"log_level"`
}

Jump to

Keyboard shortcuts

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