yaclt
Version:
Yet Another Change Log Tool
22 lines (20 loc) • 589 B
text/typescript
import { CommandModule } from "yargs";
import { GlobalArgv } from "../options";
export const CompletionFishCommand: CommandModule<
Record<string, unknown>,
GlobalArgv
> = {
command: "completion-fish",
describe: "Generate completion script for Fish",
handler: () => {
// eslint-disable-next-line no-console
console.log(`
###-begin-yaclt-completions-###
#
# yargs command completion script
#
# Installation: yaclt completion-fish >> ~/.config/fish/config.fish
complete --no-files --command yaclt --arguments "(yaclt --get-yargs-completions (commandline -cp))"
`);
},
};