google / google/fscrypt

Use CLI library to handle completion

Open
#347 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
1k
Forks
111
Avg merge
2d 19h
Merged PRs (30d)
3

Description

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

- [urfave/cli v2 Bash completion](https://github.com/urfave/cli/blob/master/docs/v2/manual.md#bash-completion)
- [Cobra dynamic noun completion](https://github.com/spf13/cobra/blob/master/shell_completions.md#dynamic-completion-of-nouns)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.