From 323726f16d62dd98bd77855818308b3e57a9a82c Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Wed, 6 Nov 2024 17:38:02 -0800 Subject: [PATCH] [tagpush] Fix completions code. --- scripts/git/tagpush.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/git/tagpush.ts b/scripts/git/tagpush.ts index ca8dfc07..e35b66aa 100755 --- a/scripts/git/tagpush.ts +++ b/scripts/git/tagpush.ts @@ -1,6 +1,5 @@ #!/usr/bin/env bun -import { log } from "node:console"; import { exit, stdout } from "node:process"; import { $ } from "bun"; import { oneOf, option, optional } from "cmd-ts"; @@ -20,16 +19,14 @@ const app = command({ type: optional(oneOf(["fish"])), description: "Print completions", long: "completions", - defaultValue: () => "fish", - defaultValueIsSerializable: true, }), }, handler: async ({ retag, completions }) => { if (completions === "fish") { - log(` -complete -c tagpush -l help -d 'Print help.' -f + console.log(`complete -c tagpush -l help -d 'Print help.' -f complete -c tagpush -l retag -d 'Remove an existing tag and retag if if it exists.' -f complete -c tagpush -l completions -d 'Print completions.' -r -f -a "fish"`); + exit(0); } const version = $`version`;