From a7bde3acf20ed633da87f60fe4b9b4ea515f59d7 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Wed, 24 May 2023 20:02:00 +0200 Subject: [PATCH] add completion for `toipe` (#508) --- custom-completions/toipe/toipe-completions.nu | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 custom-completions/toipe/toipe-completions.nu diff --git a/custom-completions/toipe/toipe-completions.nu b/custom-completions/toipe/toipe-completions.nu new file mode 100644 index 0000000..90361cc --- /dev/null +++ b/custom-completions/toipe/toipe-completions.nu @@ -0,0 +1,20 @@ +def "nu-complete toipe wordlists" [] {[ + top250 + top500 + top1000 + top2500 + top5000 + top10000 + top25000 + commonly-misspelled + os +]} + +# external completion for toipe 0.4.1 +export extern toipe [ + --file (-f): path # Path to custom word list file. Providing this will override `-w`/`--wordlist`. + --help (-h) # Print help information + --num-words (-n): int # Number of words to show on each test [default: 30] + --version (-V) # Print version information + --wordlist (-w): string@"nu-complete toipe wordlists" # Word list name [default: top250] +]