mirror of
https://github.com/daylinmorgan/forge.git
synced 2024-12-25 11:50:44 -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.
|
||||
|
||||
Example:
|
||||
|
||||
```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:
|
||||
```
|
||||
dist
|
||||
├── forge-v2023.1001-x86_64-linux-musl
|
||||
│ └── forge
|
||||
│ └── forge
|
||||
└── forge-v2023.1001-x86_64-macos-none
|
||||
└── forge
|
||||
```
|
||||
|
|
|
@ -8,4 +8,4 @@ binDir = "bin"
|
|||
|
||||
|
||||
requires "nim >= 2.0.0"
|
||||
requires "https://github.com/daylinmorgan/hwylterm#e8e090c"
|
||||
requires "https://github.com/daylinmorgan/hwylterm#748f7e"
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
"packages": {
|
||||
"hwylterm": {
|
||||
"version": "0.1.0",
|
||||
"vcsRevision": "e8e090c5b76bc555231bda536193df6f92a54db2",
|
||||
"vcsRevision": "748f7e1bd6325d39bc531b29ce28f5ef276c5aae",
|
||||
"url": "https://github.com/daylinmorgan/hwylterm",
|
||||
"downloadMethod": "git",
|
||||
"dependencies": [],
|
||||
"checksums": {
|
||||
"sha1": "925aad3ce660979de7cdb2f58a31dc7ac693e34d"
|
||||
"sha1": "129117c4e51b13d8eede1ef4a471b134d724b92f"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -121,28 +121,27 @@ when isMainModule:
|
|||
flags:
|
||||
[shared]
|
||||
`dry-run`:
|
||||
T bool
|
||||
? "show command instead of executing"
|
||||
- n
|
||||
nimble:
|
||||
T bool
|
||||
? "use nimble as base command for compiling"
|
||||
subcommands:
|
||||
--- targets
|
||||
[targets]
|
||||
... "show available targets"
|
||||
run: targets()
|
||||
|
||||
--- cc
|
||||
[cc]
|
||||
... "compile with zig cc"
|
||||
flags:
|
||||
^[shared]
|
||||
target:
|
||||
T string
|
||||
? "target triple"
|
||||
- t
|
||||
run:
|
||||
cc(target, `dry-run`, nimble, args)
|
||||
|
||||
--- release
|
||||
[release]
|
||||
... """
|
||||
generate release assets for n>=1 targets
|
||||
|
||||
|
@ -156,7 +155,6 @@ when isMainModule:
|
|||
flags:
|
||||
^[shared]
|
||||
verbose:
|
||||
T bool
|
||||
? "enable verbose"
|
||||
- v
|
||||
target:
|
||||
|
@ -169,21 +167,25 @@ when isMainModule:
|
|||
? "set bin, may be repeated"
|
||||
* @[]
|
||||
format:
|
||||
T string
|
||||
? "set format, see help above"
|
||||
`config-file`:
|
||||
T string
|
||||
? "path to config"
|
||||
* ".forge.cfg"
|
||||
`no-config`:
|
||||
T bool
|
||||
? "ignore config file"
|
||||
outdir:
|
||||
T string
|
||||
? "path to output dir"
|
||||
* "dist"
|
||||
- o
|
||||
name:
|
||||
T string
|
||||
? "set name, inferred otherwise"
|
||||
* ""
|
||||
version:
|
||||
T string
|
||||
? "set version, inferred otherwise"
|
||||
* ""
|
||||
run:
|
||||
|
|
Loading…
Reference in a new issue