Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/bombshell-dev/tab. shell autocompletions for javascript CLIs
Something went wrong. Try again.
JavaScript
1234567891011121314151617#!/usr/bin/env node
if (process.argv[2] === '__complete') { console.log('hello\tSay hello'); console.log('world\tSay world'); process.exit(0);} else { const command = process.argv[2]; if (command === 'hello') { console.log('Hello!'); } else if (command === 'world') { console.log('World!'); } else { console.log('Usage: tiny-cli [hello|world]'); }}