File tree Expand file tree Collapse file tree 3 files changed +119
-6
lines changed
Expand file tree Collapse file tree 3 files changed +119
-6
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2025 The GoPlus Authors (goplus.org). All rights reserved.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and limitations under the License.
14+ */
15+
16+ import (
17+ "runtime"
18+
19+ self "github.com/goplus/llgo/xtool/cppkg"
20+ )
21+
22+ short "Manage C/C++ packages"
23+
24+ run => {
25+ help
26+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2025 The GoPlus Authors (goplus.org). All rights reserved.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and limitations under the License.
14+ */
15+
16+ import (
17+ "runtime"
18+
19+ self "github.com/goplus/llgo/xtool/cppkg"
20+ )
21+
22+ short "Install a C/C++ package from github.com/goplus/cppkg"
23+
24+ long `Installs a C/C++ package with the given name and version. For example:
25+
26+ llgo cppkg install davegamble/cjson@1.7.18
27+ `
28+
29+ run args => {
30+ if args.len < 1 {
31+ help
32+ return
33+ }
34+
35+ self.install args[0], self.DefaultFlags
36+ }
You can’t perform that action at this time.
0 commit comments