cli

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version  = "0.0.6"
	HomePage = "https://github.com/fpfeng/nnr-moe-cli"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIParseResult

type CLIParseResult struct {
	Token        string
	OutputMode   string
	InvokeAction TypeInvokeAction
	AddRule      core.RequestAddRule
	DeleteRule   core.RequestRuleRid
	EditedRule   core.RequestEditedRule
	GetRule      core.RequestRuleRid
	GetServerSid string
}

func StartCLI

func StartCLI(args []string) *CLIParseResult

type TypeInvokeAction

type TypeInvokeAction string
const (
	InvokeServers    TypeInvokeAction = "servers"
	InvokeRules      TypeInvokeAction = "rules"
	InvokeAddRule    TypeInvokeAction = "add-rule"
	InvokeEditRule   TypeInvokeAction = "edit-rule"
	InvokeDeleteRule TypeInvokeAction = "delete-rule"
	InvokeGetRule    TypeInvokeAction = "get-rule"
	InvokeGetServer  TypeInvokeAction = "get-server"
)

Jump to

Keyboard shortcuts

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