cmd

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CliName            = "moling"
	CliNameZh          = "魔灵"
	MCPServerName      = "Gojue MoLing 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 = `` /* 663-byte string literal not displayed */

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

)
View Source
const (
	MLConfigName = "config.json" // config file name of MoLing Server
)

Variables

View Source
var (
	GitVersion = "linux-arm64-202503222008-v0.0.1"
)

Functions

func ConfigCommandFunc added in v0.0.2

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

ConfigCommandFunc executes the "config" command.

func CreateDirectory added in v0.0.3

func CreateDirectory(path string) error

CreateDirectory checks if a directory exists, and creates it if it doesn't

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

type MoLingServer

type MoLingServer struct {
	// contains filtered or unexported fields
}

func NewMoLingServer

func NewMoLingServer(ctx context.Context, services []services.Service) (*MoLingServer, error)

func (*MoLingServer) Serve

func (s *MoLingServer) Serve() error

Jump to

Keyboard shortcuts

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