commands

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Name is the name of the compiled software.
	Name string
	// Version is the version of the compiled software.
	Version string
)

go build -ldflags "-X main.Version=x.y.z"

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Name               string `json:"name"`
	BrowserDownloadURL string `json:"browser_download_url"`
}

Asset 发布资源结构

type CallGraphCommand

type CallGraphCommand struct {
	cmdbase.BaseCommand
	// contains filtered or unexported fields
}

CallGraphCommand 调用图命令

func NewCallGraphCommand

func NewCallGraphCommand() *CallGraphCommand

NewCallGraphCommand 创建调用图命令

func (*CallGraphCommand) Init

func (c *CallGraphCommand) Init()

Init 初始化调用图命令

func (*CallGraphCommand) Run

func (c *CallGraphCommand) Run(cmd *cobra.Command, args []string)

Run 执行调用图命令

type ConfigCommand added in v1.1.6

type ConfigCommand struct {
	cmdbase.BaseCommand
	// contains filtered or unexported fields
}

ConfigCommand 配置文件命令

func NewConfigCommand added in v1.1.6

func NewConfigCommand() *ConfigCommand

NewConfigCommand 创建配置文件命令

func (*ConfigCommand) Init added in v1.1.6

func (c *ConfigCommand) Init()

Init 初始化配置文件命令

func (*ConfigCommand) Run added in v1.1.6

func (c *ConfigCommand) Run(cmd *cobra.Command, args []string)

Run 执行配置文件生成命令

type GitCommand

type GitCommand struct {
	cmdbase.BaseCommand
}

GitCommand Git集成命令

func NewGitCommand

func NewGitCommand() *GitCommand

NewGitCommand 创建Git命令

func (*GitCommand) ExecGitCommand

func (g *GitCommand) ExecGitCommand(args ...string) ([]byte, error)

ExecGitCommand 执行一个git命令

func (*GitCommand) Init

func (g *GitCommand) Init()

Init 初始化Git命令

type GitHubRelease

type GitHubRelease struct {
	TagName string  `json:"tag_name"`
	Assets  []Asset `json:"assets"`
}

GitHubRelease GitHub发布信息结构

type MRCommand

type MRCommand struct {
	cmdbase.BaseCommand
	// contains filtered or unexported fields
}

MRCommand MR分析命令

func NewMRCommand

func NewMRCommand() *MRCommand

NewMRCommand 创建MR分析命令

func (*MRCommand) Init

func (m *MRCommand) Init()

Init 初始化MR分析命令

func (*MRCommand) Run

func (m *MRCommand) Run(cmd *cobra.Command, args []string)

Run 执行MR分析命令

type RewriteCommand

type RewriteCommand struct {
	cmdbase.BaseCommand
	// contains filtered or unexported fields
}

RewriteCommand 代码重写命令

func NewRewriteCommand

func NewRewriteCommand() *RewriteCommand

NewRewriteCommand 创建代码重写命令

func (*RewriteCommand) Init

func (r *RewriteCommand) Init()

Init 初始化代码重写命令

func (*RewriteCommand) Run

func (r *RewriteCommand) Run(cmd *cobra.Command, args []string)

Run 执行代码重写命令

type RootCommand

type RootCommand struct {
	cmdbase.BaseCommand
}

RootCommand 根命令实现

func NewRootCommand

func NewRootCommand() *RootCommand

NewRootCommand 创建根命令

func (*RootCommand) Execute

func (r *RootCommand) Execute()

Execute 执行根命令

func (*RootCommand) Init

func (r *RootCommand) Init()

Init 初始化根命令

type ServerCommand

type ServerCommand struct {
	cmdbase.BaseCommand

	Name    string
	Version string
	// contains filtered or unexported fields
}

ServerCommand 服务器命令

func NewServerCommand

func NewServerCommand() *ServerCommand

NewServerCommand 创建服务器命令

func (*ServerCommand) Init

func (s *ServerCommand) Init()

Init 初始化服务器命令

func (*ServerCommand) Run

func (s *ServerCommand) Run(cmd *cobra.Command, args []string)

Run 执行服务器命令

type SyncCommand

type SyncCommand struct {
	cmdbase.BaseCommand
	// contains filtered or unexported fields
}

SyncCommand 同步前端代码命令

func NewSyncCommand

func NewSyncCommand() *SyncCommand

NewSyncCommand 创建同步命令

func (*SyncCommand) Init

func (s *SyncCommand) Init()

Init 初始化同步命令

func (*SyncCommand) Run

func (s *SyncCommand) Run(cmd *cobra.Command, args []string)

Run 执行同步命令

Jump to

Keyboard shortcuts

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