Skip to content

Commit 2c1d20b

Browse files
committed
add usage for llgo
1 parent 98bd05b commit 2c1d20b

10 files changed

Lines changed: 64 additions & 28 deletions

cmd/llgo/build_cmd.gox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import (
1717
self "github.com/goplus/llgo/cmd/internal/build"
1818
)
1919

20+
use "build [flags] [packages]"
21+
2022
short "Compile packages and dependencies"
2123

2224
flagOff

cmd/llgo/clean_cmd.gox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import (
1717
self "github.com/goplus/llgo/cmd/internal/clean"
1818
)
1919

20+
use "clean [flags] [packages]"
21+
2022
short "Remove object files and cached files"
2123

2224
flagOff

cmd/llgo/cmptest_cmd.gox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import (
1717
self "github.com/goplus/llgo/cmd/internal/run"
1818
)
1919

20+
use "cmptest [flags] package [arguments...]"
21+
2022
short "Compile and run with llgo, compare result (stdout/stderr/exitcode) with go or llgo.expect; generate llgo.expect file if -gen is specified"
2123

2224
flagOff

cmd/llgo/cppkg_install_cmd.gox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import (
1717
self "github.com/goplus/llgo/xtool/cppkg"
1818
)
1919

20+
use "cppkg install [flags] [packages]"
21+
2022
short "Install a C/C++ package from github.com/goplus/cppkg"
2123

2224
long `Installs a C/C++ package with the given name and version. For example:

cmd/llgo/get_cmd.gox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and limitations under the License.
1414
*/
1515

16+
use "get [flags] [packages]"
17+
1618
short "Add dependencies to current module and install them"
1719

1820
run args => {

cmd/llgo/gop_autogen.go

Lines changed: 46 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/llgo/install_cmd.gox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import (
1717
self "github.com/goplus/llgo/cmd/internal/install"
1818
)
1919

20+
use "install [flags] [packages]"
21+
2022
short "Compile and install packages and dependencies"
2123

2224
flagOff

cmd/llgo/run_cmd.gox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import (
1717
self "github.com/goplus/llgo/cmd/internal/run"
1818
)
1919

20+
use "run [flags] package [arguments...]"
21+
2022
short "Compile and run Go program"
2123

2224
flagOff

cmd/llgo/test_cmd.gox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import (
1717
self "github.com/goplus/llgo/cmd/internal/test"
1818
)
1919

20+
use "test [flags] package [arguments...]"
21+
2022
short "Compile and run Go test"
2123

2224
flagOff

cmd/llgo/version_cmd.gox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import (
1919
"github.com/goplus/llgo/internal/env"
2020
)
2121

22+
use "version"
23+
2224
short "Print LLGo version"
2325

2426
run => {

0 commit comments

Comments
 (0)