cmd: llgo.next
This commit is contained in:
44
cmd/llgo.next/gop_autogen.go
Normal file
44
cmd/llgo.next/gop_autogen.go
Normal file
@@ -0,0 +1,44 @@
|
||||
// Code generated by gop (Go+); DO NOT EDIT.
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/goplus/cobra/xcmd"
|
||||
"github.com/goplus/llgo/internal/env"
|
||||
"github.com/qiniu/x/stringutil"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
const _ = true
|
||||
|
||||
type version struct {
|
||||
xcmd.Command
|
||||
*App
|
||||
}
|
||||
type App struct {
|
||||
xcmd.App
|
||||
}
|
||||
|
||||
func (this *App) Main() {
|
||||
_gop_obj0 := &version{App: this}
|
||||
xcmd.Gopt_App_Main(this, _gop_obj0)
|
||||
}
|
||||
//line cmd/llgo/version_cmd.gox:7
|
||||
func (this *version) Main(_gop_arg0 string) {
|
||||
this.Command.Main(_gop_arg0)
|
||||
//line cmd/llgo/version_cmd.gox:7:1
|
||||
this.Short("print LLGo version")
|
||||
//line cmd/llgo/version_cmd.gox:9:1
|
||||
this.Run__0(func() {
|
||||
//line cmd/llgo/version_cmd.gox:10:1
|
||||
fmt.Println(stringutil.Concat("llgo ", env.Version(), " ", runtime.GOOS, "/", runtime.GOARCH))
|
||||
})
|
||||
}
|
||||
func (this *version) Classfname() string {
|
||||
return "version"
|
||||
}
|
||||
func main() {
|
||||
//line cmd/llgo/version_cmd.gox:9:1
|
||||
new(App).Main()
|
||||
}
|
||||
11
cmd/llgo.next/version_cmd.gox
Normal file
11
cmd/llgo.next/version_cmd.gox
Normal file
@@ -0,0 +1,11 @@
|
||||
import (
|
||||
"runtime"
|
||||
|
||||
"github.com/goplus/llgo/internal/env"
|
||||
)
|
||||
|
||||
short "print LLGo version"
|
||||
|
||||
run => {
|
||||
echo "llgo ${env.version} ${runtime.GOOS}/${runtime.GOARCH}"
|
||||
}
|
||||
1
go.mod
1
go.mod
@@ -6,6 +6,7 @@ toolchain go1.24.1
|
||||
|
||||
require (
|
||||
github.com/goccy/go-yaml v1.17.1
|
||||
github.com/goplus/cobra v1.9.7 //gop:class
|
||||
github.com/goplus/gogen v1.17.3
|
||||
github.com/goplus/lib v0.2.0
|
||||
github.com/goplus/llgo/runtime v0.0.0-00010101000000-000000000000
|
||||
|
||||
2
go.sum
2
go.sum
@@ -2,6 +2,8 @@ github.com/goccy/go-yaml v1.17.1 h1:LI34wktB2xEE3ONG/2Ar54+/HJVBriAGJ55PHls4YuY=
|
||||
github.com/goccy/go-yaml v1.17.1/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
|
||||
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
|
||||
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/goplus/cobra v1.9.7 h1:aG9WtC06MKEfu/g5XMPz8i1hwh0kS9AxuDyJmSW8xe8=
|
||||
github.com/goplus/cobra v1.9.7/go.mod h1:p4LhfNJDKEpiGjGiNn0crUXL5dUPA5DX2ztYpEJR34E=
|
||||
github.com/goplus/gogen v1.17.3 h1:Xhoj2KQw4feRdPEtOYjTUe9lSvNIoxBG4urhdjf+fUg=
|
||||
github.com/goplus/gogen v1.17.3/go.mod h1:owX2e1EyU5WD+Nm6oH2m/GXjLdlBYcwkLO4wN8HHXZI=
|
||||
github.com/goplus/lib v0.2.0 h1:AjqkN1XK5H23wZMMlpaUYAMCDAdSBQ2NMFrLtSh7W4g=
|
||||
|
||||
Reference in New Issue
Block a user