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 f647c62
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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 @@ -26,10 +25,10 @@ const app = command({
},
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 f647c62

Please sign in to comment.