cmds

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cmds defines commands +genx:doc

Code generated by genx:doc DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var CmdServer = cmdx.NewCommand("server", &Server{}).Cmd()
View Source
var CmdVersion = cmdx.NewCommand("version", &Version{}).Cmd()

Functions

This section is empty.

Types

type Server

type Server struct {
	// Debug enable debug mode
	Debug bool `cmd:",default=true"`
	// LogLevel set log level [debug info warn error]
	LogLevel string `cmd:",default=debug"`
	// Port server listen port
	Port uint16 `cmd:",default=80"`
}

Server start an echo server

func (*Server) DocOf

func (v *Server) DocOf(names ...string) ([]string, bool)

func (*Server) Exec

func (s *Server) Exec(cmd *cobra.Command, args ...string) error

type Version

type Version struct{}

Version output command version

func (*Version) DocOf

func (v *Version) DocOf(names ...string) ([]string, bool)

func (*Version) Exec

func (*Version) Exec(cmd *cobra.Command, args ...string) error

Jump to

Keyboard shortcuts

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