mirror of
https://github.com/daylinmorgan/forge.git
synced 2024-11-24 00:40:45 -06:00
update hwylcli to add back , separator support
This commit is contained in:
parent
b0a5545ebc
commit
6e6529ed0d
4 changed files with 15 additions and 12 deletions
|
@ -46,15 +46,16 @@ likely run from the root directory of a `nim` project with a `<project>.nimble`
|
||||||
You can either specify all commands on the CLI or use a config file.
|
You can either specify all commands on the CLI or use a config file.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
forge release -t x86_64-linux-musl -t x86_64-macos-none --bin src/forge.nim
|
forge release --target,=x86_64-linux-musl,x86_64-macos-none --bin src/forge.nim
|
||||||
```
|
```
|
||||||
|
|
||||||
Result:
|
Result:
|
||||||
```
|
```
|
||||||
dist
|
dist
|
||||||
├── forge-v2023.1001-x86_64-linux-musl
|
├── forge-v2023.1001-x86_64-linux-musl
|
||||||
│ └── forge
|
│ └── forge
|
||||||
└── forge-v2023.1001-x86_64-macos-none
|
└── forge-v2023.1001-x86_64-macos-none
|
||||||
└── forge
|
└── forge
|
||||||
```
|
```
|
||||||
|
|
|
@ -8,4 +8,4 @@ binDir = "bin"
|
||||||
|
|
||||||
|
|
||||||
requires "nim >= 2.0.0"
|
requires "nim >= 2.0.0"
|
||||||
requires "https://github.com/daylinmorgan/hwylterm#e8e090c"
|
requires "https://github.com/daylinmorgan/hwylterm#748f7e"
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
"packages": {
|
"packages": {
|
||||||
"hwylterm": {
|
"hwylterm": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"vcsRevision": "e8e090c5b76bc555231bda536193df6f92a54db2",
|
"vcsRevision": "748f7e1bd6325d39bc531b29ce28f5ef276c5aae",
|
||||||
"url": "https://github.com/daylinmorgan/hwylterm",
|
"url": "https://github.com/daylinmorgan/hwylterm",
|
||||||
"downloadMethod": "git",
|
"downloadMethod": "git",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"checksums": {
|
"checksums": {
|
||||||
"sha1": "925aad3ce660979de7cdb2f58a31dc7ac693e34d"
|
"sha1": "129117c4e51b13d8eede1ef4a471b134d724b92f"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -121,28 +121,27 @@ when isMainModule:
|
||||||
flags:
|
flags:
|
||||||
[shared]
|
[shared]
|
||||||
`dry-run`:
|
`dry-run`:
|
||||||
T bool
|
|
||||||
? "show command instead of executing"
|
? "show command instead of executing"
|
||||||
- n
|
- n
|
||||||
nimble:
|
nimble:
|
||||||
T bool
|
|
||||||
? "use nimble as base command for compiling"
|
? "use nimble as base command for compiling"
|
||||||
subcommands:
|
subcommands:
|
||||||
--- targets
|
[targets]
|
||||||
... "show available targets"
|
... "show available targets"
|
||||||
run: targets()
|
run: targets()
|
||||||
|
|
||||||
--- cc
|
[cc]
|
||||||
... "compile with zig cc"
|
... "compile with zig cc"
|
||||||
flags:
|
flags:
|
||||||
^[shared]
|
^[shared]
|
||||||
target:
|
target:
|
||||||
|
T string
|
||||||
? "target triple"
|
? "target triple"
|
||||||
- t
|
- t
|
||||||
run:
|
run:
|
||||||
cc(target, `dry-run`, nimble, args)
|
cc(target, `dry-run`, nimble, args)
|
||||||
|
|
||||||
--- release
|
[release]
|
||||||
... """
|
... """
|
||||||
generate release assets for n>=1 targets
|
generate release assets for n>=1 targets
|
||||||
|
|
||||||
|
@ -156,7 +155,6 @@ when isMainModule:
|
||||||
flags:
|
flags:
|
||||||
^[shared]
|
^[shared]
|
||||||
verbose:
|
verbose:
|
||||||
T bool
|
|
||||||
? "enable verbose"
|
? "enable verbose"
|
||||||
- v
|
- v
|
||||||
target:
|
target:
|
||||||
|
@ -169,21 +167,25 @@ when isMainModule:
|
||||||
? "set bin, may be repeated"
|
? "set bin, may be repeated"
|
||||||
* @[]
|
* @[]
|
||||||
format:
|
format:
|
||||||
|
T string
|
||||||
? "set format, see help above"
|
? "set format, see help above"
|
||||||
`config-file`:
|
`config-file`:
|
||||||
|
T string
|
||||||
? "path to config"
|
? "path to config"
|
||||||
* ".forge.cfg"
|
* ".forge.cfg"
|
||||||
`no-config`:
|
`no-config`:
|
||||||
T bool
|
|
||||||
? "ignore config file"
|
? "ignore config file"
|
||||||
outdir:
|
outdir:
|
||||||
|
T string
|
||||||
? "path to output dir"
|
? "path to output dir"
|
||||||
* "dist"
|
* "dist"
|
||||||
- o
|
- o
|
||||||
name:
|
name:
|
||||||
|
T string
|
||||||
? "set name, inferred otherwise"
|
? "set name, inferred otherwise"
|
||||||
* ""
|
* ""
|
||||||
version:
|
version:
|
||||||
|
T string
|
||||||
? "set version, inferred otherwise"
|
? "set version, inferred otherwise"
|
||||||
* ""
|
* ""
|
||||||
run:
|
run:
|
||||||
|
|
Loading…
Reference in a new issue