cmd

package
v0.0.0-...-1adbf8b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePass

func ChangePass(p, newP1, newP2 string)

func Clear

func Clear()

func DBs

func DBs()

func GetConfig

func GetConfig(cfg config.Config, key string) any

func NewCmdChangePass

func NewCmdChangePass(f *cmdutil.Factory) *cobra.Command

func NewCmdClear

func NewCmdClear(f *cmdutil.Factory) *cobra.Command

func NewCmdConfig

func NewCmdConfig(f *cmdutil.Factory) *cobra.Command

func NewCmdConfigGet

func NewCmdConfigGet(f *cmdutil.Factory) *cobra.Command

func NewCmdConfigList

func NewCmdConfigList(f *cmdutil.Factory) *cobra.Command

func NewCmdConfigSet

func NewCmdConfigSet(f *cmdutil.Factory) *cobra.Command

func NewCmdDBs

func NewCmdDBs(f *cmdutil.Factory) *cobra.Command

func NewCmdQueries

func NewCmdQueries(f *cmdutil.Factory) *cobra.Command

func NewCmdSchema

func NewCmdSchema(f *cmdutil.Factory) *cobra.Command

func NewCmdStatus

func NewCmdStatus(f *cmdutil.Factory) *cobra.Command

func NewCmdSysInfo

func NewCmdSysInfo(f *cmdutil.Factory) *cobra.Command

func Queries

func Queries()

func Schema

func Schema()

func SetConfig

func SetConfig(cfg config.Config, key, val string)

func Status

func Status()

func SysInfo

func SysInfo()

Types

type DBInfo

type DBInfo struct {
	Name    string
	Address string
	Role    string
	Status  string
	Default bool
	Error   string
}

func ListDBs

func ListDBs() []DBInfo

func (DBInfo) String

func (d DBInfo) String() string

type Prop

type Prop struct {
	Key   string
	Value any
}

func ListConfig

func ListConfig(cfg config.Config) (ps []Prop)

Jump to

Keyboard shortcuts

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