From 2301a4834d142a62dc8ccef0878534edcb0a73ed Mon Sep 17 00:00:00 2001 From: xushiwei Date: Wed, 7 May 2025 22:30:54 +0800 Subject: [PATCH] cmd/llog: main cmd --- cmd/llgo/gop_autogen.go | 11 +++++++---- cmd/llgo/main_cmd.gox | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 cmd/llgo/main_cmd.gox diff --git a/cmd/llgo/gop_autogen.go b/cmd/llgo/gop_autogen.go index 53c3d149..aaecfb06 100644 --- a/cmd/llgo/gop_autogen.go +++ b/cmd/llgo/gop_autogen.go @@ -46,6 +46,9 @@ type install struct { xcmd.Command *App } +type App struct { + xcmd.App +} type run struct { xcmd.Command *App @@ -58,10 +61,11 @@ type version struct { xcmd.Command *App } -type App struct { - xcmd.App +//line cmd/llgo/main_cmd.gox:1 +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() { _gop_obj0 := &build{App: this} _gop_obj1 := &clean{App: this} @@ -242,6 +246,5 @@ func (this *version) Classfname() string { return "version" } func main() { -//line cmd/llgo/version_cmd.gox:24:1 new(App).Main() } diff --git a/cmd/llgo/main_cmd.gox b/cmd/llgo/main_cmd.gox new file mode 100644 index 00000000..41af6f22 --- /dev/null +++ b/cmd/llgo/main_cmd.gox @@ -0,0 +1 @@ +short `llgo is a Go compiler based on LLVM in order to better integrate Go with the C ecosystem including Python.`