cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 11 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 */

)

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 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.

func MoLingPreRunE added in v0.0.2

func MoLingPreRunE(cmd *cobra.Command, args []string) error

Types

type MoLingServer

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

func NewMoLingServer

func NewMoLingServer(ctx context.Context, services []services.Service, addr string) (*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