Skip to content

Commit

Permalink
[tagpush] Fix completions code.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Nov 7, 2024
1 parent 49321cc commit 323726f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/git/tagpush.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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`;
Expand Down

0 comments on commit 323726f

Please sign in to comment.