gencmd

package
v0.0.0-...-8761aa2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	GenVsCommand    *GenVsCmd    `arg:"subcommand:vs"`
	GenClangCommand *GenClangCmd `arg:"subcommand:clang"`
}

Cmd 是 gen 子命令的集合。

func (*Cmd) Run

func (cmd *Cmd) Run() error

Run 实现了 subCmd 的接口。

type GenClangCmd

type GenClangCmd struct {
	Fast        bool   `arg:"-f,--fast"`
	ProjectFile string `arg:"positional,required"`
}

GenClangCmd 是 gen 子命令中负责生成 clang database 的子命令。

func (*GenClangCmd) Run

func (cmd *GenClangCmd) Run() error

Run 执行生成操作。

type GenVsCmd

type GenVsCmd struct {
	ProjectFile string `arg:"positional,required"`
}

GenVsCmd 是 gen 子命令中负责生成 VS 工程的子命令。

func (*GenVsCmd) Run

func (cmd *GenVsCmd) Run() error

Run 执行生成操作。

Jump to

Keyboard shortcuts

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