zig-args icon indicating copy to clipboard operation
zig-args copied to clipboard

Generate completions

Open daurnimator opened this issue 5 years ago • 1 comments
trafficstars

Add shell completion support.

pub CompletionShell = enum {bash, fish, zsh};
pub fn writeCompletions(shell: CompletionShell, myoutstream: var) !void`

Bonus feature: add a utility method to add a completion subcommand

daurnimator avatar Mar 05 '20 00:03 daurnimator

https://github.com/luarocks/argparse/blob/master/src/argparse.lua#L1240-L1346

ikskuh avatar Mar 11 '21 14:03 ikskuh