input -> inputs

This commit is contained in:
Daylin Morgan 2024-11-20 11:32:06 -06:00
parent 5184b724d3
commit 8c1b6e7d31
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -81,10 +81,10 @@ hwylCli:
trigger GHA trigger GHA
examples: examples:
[b]oizys gha update[/] --input:hosts:othalan,algiz,mannaz [b]oizys gha update[/] --inputs:hosts:othalan,algiz,mannaz
""" """
flags: flags:
input: inputs:
T seq[KVString] T seq[KVString]
? "inputs for dispatch" ? "inputs for dispatch"
`ref`: `ref`:
@ -96,7 +96,7 @@ hwylCli:
# i.e. @flake.lock means read a file a flake.lock and use it's contents # i.e. @flake.lock means read a file a flake.lock and use it's contents
if args.len == 0: fatalQuit "expected workflow file name" if args.len == 0: fatalQuit "expected workflow file name"
let inputs = let inputs =
input.mapIt((it.key, it.val)).toTable() inputs.mapIt((it.key, it.val)).toTable()
createDispatch(args[0], `ref`, inputs) createDispatch(args[0], `ref`, inputs)
[dry] [dry]