google / fscrypt

Go tool for managing Linux filesystem encryption
Apache License 2.0
886 stars 99 forks source link

Use CLI library to handle completion #347

Open josephlr opened 2 years ago

josephlr commented 2 years ago

Both github.com/urfave/cli and github.com/spf13/cobra have ways to automatically generate the bash completion information from our command structures.

The best long-term strategy is probably to switch to Cobra, and just use their functionality. Then users can get their completions just by running:

fscrypt completion bash

We would then be able to move completion logic into Go, and gain support for Bash, ZSH, and fish

ghost commented 1 year ago

I am using Zsh. Please make completion in Zsh a reality!