Merge pull request #1098 from xushiwei/q

cmd/llgo: main cmd
This commit is contained in:
xushiwei
2025-05-07 22:31:39 +08:00
committed by GitHub
2 changed files with 8 additions and 4 deletions

View File

@@ -46,6 +46,9 @@ type install struct {
xcmd.Command xcmd.Command
*App *App
} }
type App struct {
xcmd.App
}
type run struct { type run struct {
xcmd.Command xcmd.Command
*App *App
@@ -58,10 +61,11 @@ type version struct {
xcmd.Command xcmd.Command
*App *App
} }
type App struct { //line cmd/llgo/main_cmd.gox:1
xcmd.App func (this *App) MainEntry() {
//line cmd/llgo/main_cmd.gox:1:1
this.Short(`llgo is a Go compiler based on LLVM in order to better integrate Go with the C ecosystem including Python.`)
} }
func (this *App) Main() { func (this *App) Main() {
_gop_obj0 := &build{App: this} _gop_obj0 := &build{App: this}
_gop_obj1 := &clean{App: this} _gop_obj1 := &clean{App: this}
@@ -242,6 +246,5 @@ func (this *version) Classfname() string {
return "version" return "version"
} }
func main() { func main() {
//line cmd/llgo/version_cmd.gox:24:1
new(App).Main() new(App).Main()
} }

1
cmd/llgo/main_cmd.gox Normal file
View File

@@ -0,0 +1 @@
short `llgo is a Go compiler based on LLVM in order to better integrate Go with the C ecosystem including Python.`