From cd99337b26e3c434a0fb2c85d963407b93800bf9 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sun, 3 Dec 2023 12:18:00 +0300 Subject: [PATCH] Add completer --- run.nu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run.nu b/run.nu index af30710..3cac141 100755 --- a/run.nu +++ b/run.nu @@ -1,8 +1,12 @@ #!/usr/bin/env nu +def complete [] { + ls 2023 | get names | filter { not ($in str-endswith ".in") } +} + # Run a specified AoC solution. def main [ - year_day_part_ext: string # The file to run. For example `2023/1-2.py` or `2023/1-2.nix`. + year_day_part_ext: string@complete # The file to run. For example `2023/1-2.py` or `2023/1-2.nix`. ] { match ($year_day_part_ext | path parse | get extension) { "nix" => {