From 95b851d3461a8eab56ebc1c95e028ead2c7c2d22 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Mon, 22 Aug 2022 15:53:04 +0200 Subject: [PATCH] Finetuning zsh completion trivia parameter --- APKBUILD | 8 ++++---- example.json | 2 +- main.go | 2 +- zsh.completion | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/APKBUILD b/APKBUILD index 0bc5e95..4294323 100644 --- a/APKBUILD +++ b/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Marty Sluijtman pkgname=sheet-parser pkgver=0.2 -pkgrel=0 +pkgrel=1 pkgdesc="A little D&D character sheet parser written in go" url="https://gitlab.com/EternalWanderer/sheet-parser" arch="all" @@ -28,7 +28,7 @@ package() { } sha512sums=" -35eec80feaa09c683759f996c8ad11f0c70a178fcae165a8921b58e4b3afbe8b6c92cc4000f084237cc1b80c6b7196035495227a6f689c081123159ea9c4ad62 sheet-parser-0.2.tar.gz -c772f393191ebd3b68b0c08cc916b1605ce8bd7d7f458da58f00cfbb6120bebe7bc86d3b70a3f7bacc4eac05cfd33846fd7ec757c054018f25d629f88bd6fec0 zsh.completion -7c1f79d8c4348a7928f81064f29fe52b8475a573e8a14d3d6bd448453b0501af60c03b43301b7049bcc249661e66213f3365ac8d34ca5c52be1cbbd7278c6f8c example.json +64c3a8a7090b16cca527c20af0ff03eff0035bbc823292ccb1f223273ad785ccdf022fb3a3aa07d4f474987abf026a46075a2623db801dc0855805448c7b4514 sheet-parser-0.2.tar.gz +eb93b5aaab730b3b2be2e2cca2bc0f27f336a7eca196ed86e0b4f82c49d5c0278c5a9d47de5c8e70fe3a59e9a88fcb3ce5f5c5ae22e886319c39fb721e0bc6b7 zsh.completion +ab6b9e0f9b1532c0e14e8995c2c77851d449d019edd675c6c6474b8f230c3b9547c36ebc7eeb318f7ec2a695d07c009e3df35a9984fc4570d71181aa730d6852 example.json " diff --git a/example.json b/example.json index 2e8a304..38f35f6 100644 --- a/example.json +++ b/example.json @@ -3,7 +3,7 @@ "level": 1, "name": "Bob", "race": "Human", - "class": "Figher", + "class": "Fighter", "background": "Generic" }, "stats":[ diff --git a/main.go b/main.go index b9e3304..4cd7048 100644 --- a/main.go +++ b/main.go @@ -115,7 +115,7 @@ func main() { } else { expertise = "Doesn't have expertise" } - fmt.Printf("Skill: %s\t%s\t%s\tSkill modifier: %d\n", name, proficiency, expertise, localModifier) + fmt.Printf("Skill: %s\tSkill modifier: %d\t%s\t%s\n", name, localModifier, proficiency, expertise) } case stat_list: diff --git a/zsh.completion b/zsh.completion index 56973a1..cef9af8 100644 --- a/zsh.completion +++ b/zsh.completion @@ -1,8 +1,8 @@ #compdef sheet-parser arguments=( - '(--trivia -t)--trivia[Print character trivia]' - '(--trivia -t)-t[Print character trivia]' + '(--advantage --disadvantage --skill --save --stat --skill-list --stat-list -v --verbose --trivia -t)--trivia[Print character trivia]' + '(--advantage --disadvantage --skill --save --stat --skill-list --stat-list -v --verbose --trivia -t)-t[Print character trivia]' '(--file)-f=[Path to charactersheet]:character sheet:_files -g "*.(json)(-.)"' '(-f)--file=[Path to charactersheet]:character sheet:_files -g "*.(json)(-.)"' '(--save --stat --verbose)-v[To be used in conjuction with list parameters]'