cmd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CliName            = "moling"
	CliNameZh          = "魔灵"
	MCPServerName      = "MoLing MCP Server"
	CliDescription     = "" /* 166-byte string literal not displayed */
	CliDescriptionZh   = "" /* 126-byte string literal not displayed */
	CliHomepage        = "https://gojue.cc/moling"
	CliAuthor          = "CFC4N <cfc4ncs@gmail.com>"
	CliGithubRepo      = "https://github.com/gojue/moling"
	CliDescriptionLong = `` /* 694-byte string literal not displayed */

	CliDescriptionLongZh = `` /* 513-byte string literal not displayed */

)
View Source
const (
	MLConfigName = "config.json"     // config file name of MoLing Server
	MLROOTPATH   = ".moling"         // config file name of MoLing Server
	LogFileName  = "moling.log"      //	log file name
	MaxLogSize   = 1024 * 1024 * 512 // 512MB
)

Variables

View Source
var (
	GitVersion = "unknown_arm64_v0.0.0_2025-03-22 20:08"
)

Functions

func ClientCommandFunc added in v0.0.7

func ClientCommandFunc(command *cobra.Command, args []string) error

ClientCommandFunc executes the "config" command.

func ConfigCommandFunc added in v0.0.2

func ConfigCommandFunc(command *cobra.Command, args []string) error

ConfigCommandFunc executes the "config" command.

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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