mirror of
https://github.com/daylinmorgan/forge.git
synced 2025-02-05 02:44:20 -06:00
update hwylterm again
This commit is contained in:
parent
0da599cf1e
commit
8e2f261ac2
4 changed files with 14 additions and 13 deletions
|
@ -8,4 +8,4 @@ binDir = "bin"
|
||||||
|
|
||||||
|
|
||||||
requires "nim >= 2.0.0"
|
requires "nim >= 2.0.0"
|
||||||
requires "https://github.com/daylinmorgan/hwylterm#3cf572ea"
|
requires "https://github.com/daylinmorgan/hwylterm#a88765"
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
"packages": {
|
"packages": {
|
||||||
"hwylterm": {
|
"hwylterm": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"vcsRevision": "3cf572ea4afa6f895eb0897bfb8e6e35f8f1e953",
|
"vcsRevision": "a88765e328e3d39e0aca64e571628ada6c4da545",
|
||||||
"url": "https://github.com/daylinmorgan/hwylterm",
|
"url": "https://github.com/daylinmorgan/hwylterm",
|
||||||
"downloadMethod": "git",
|
"downloadMethod": "git",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"checksums": {
|
"checksums": {
|
||||||
"sha1": "bf33d39e2a451b89fbbff6418569ccd5428b6bfd"
|
"sha1": "e86d701785783cdc2ffe95ae10e3d43941da5a16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -132,6 +132,8 @@ when isMainModule:
|
||||||
|
|
||||||
[cc]
|
[cc]
|
||||||
... "compile with zig cc"
|
... "compile with zig cc"
|
||||||
|
positionals:
|
||||||
|
args seq[string]
|
||||||
flags:
|
flags:
|
||||||
^[shared]
|
^[shared]
|
||||||
target:
|
target:
|
||||||
|
@ -147,11 +149,12 @@ when isMainModule:
|
||||||
|
|
||||||
format argument:
|
format argument:
|
||||||
format is a template string used for each target directory
|
format is a template string used for each target directory
|
||||||
available fields are name, version, target
|
available fields are [b i]name, version, target[/]
|
||||||
default: ${name}-v${verison}-${target}
|
|
||||||
|
|
||||||
if name or version are not specified they will be inferred from the local .nimble file
|
if name or version are not specified they will be inferred from the local .nimble file
|
||||||
"""
|
"""
|
||||||
|
positionals:
|
||||||
|
args seq[string]
|
||||||
flags:
|
flags:
|
||||||
^[shared]
|
^[shared]
|
||||||
verbose:
|
verbose:
|
||||||
|
@ -160,15 +163,16 @@ when isMainModule:
|
||||||
target:
|
target:
|
||||||
T seq[string]
|
T seq[string]
|
||||||
? "set target, may be repeated"
|
? "set target, may be repeated"
|
||||||
* @[]
|
* newSeq[string]()
|
||||||
- t
|
- t
|
||||||
bin:
|
bin:
|
||||||
T seq[string]
|
T seq[string]
|
||||||
? "set bin, may be repeated"
|
? "set bin, may be repeated"
|
||||||
* @[]
|
* newSeq[string]()
|
||||||
format:
|
format:
|
||||||
T string
|
T string
|
||||||
? "set format, see help above"
|
? "set format"
|
||||||
|
* "${name}-v${version}-${target}"
|
||||||
`config-file`:
|
`config-file`:
|
||||||
T string
|
T string
|
||||||
? "path to config"
|
? "path to config"
|
||||||
|
|
|
@ -130,10 +130,7 @@ proc newConfig*(
|
||||||
if result.version == "":
|
if result.version == "":
|
||||||
result.version = inferVersion(version, nimbleFile)
|
result.version = inferVersion(version, nimbleFile)
|
||||||
if result.format == "":
|
if result.format == "":
|
||||||
if format != "":
|
|
||||||
result.format = format
|
result.format = format
|
||||||
else:
|
|
||||||
result.format = "${name}-v${version}-${target}"
|
|
||||||
|
|
||||||
for t in targets:
|
for t in targets:
|
||||||
result.targets[t] = ""
|
result.targets[t] = ""
|
||||||
|
|
Loading…
Reference in a new issue