From 6e6529ed0dd69380c9d84d75d81f993067621096 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 18 Nov 2024 14:27:19 -0600 Subject: [PATCH] update hwylcli to add back , separator support --- README.md | 5 +++-- forge.nimble | 2 +- nimble.lock | 4 ++-- src/forge.nim | 16 +++++++++------- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index eeb53a5..08bc4c6 100644 --- a/README.md +++ b/README.md @@ -46,15 +46,16 @@ likely run from the root directory of a `nim` project with a `.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 ``` diff --git a/forge.nimble b/forge.nimble index 7a84eb5..604a5dd 100644 --- a/forge.nimble +++ b/forge.nimble @@ -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" diff --git a/nimble.lock b/nimble.lock index a17b21a..0398132 100644 --- a/nimble.lock +++ b/nimble.lock @@ -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" } } }, diff --git a/src/forge.nim b/src/forge.nim index 5ce7f7a..afbd28a 100644 --- a/src/forge.nim +++ b/src/forge.nim @@ -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: