labring / labring/laf

[Feature] laf-cli support shell autocompletion

Open
#1,098 0 comments 0 reactions 0 assignees View on GitHub
cli feature
Dominant language
TypeScript
Stars
7.6k
Forks
670
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [X] I had searched in the [issues](https://github.com/labring/laf/issues?q=is%3Aissue) and found no similar issues.

### Feature Request

### Background

Now we already have laf-ci, here is the [doc](https://doc.laf.run/guide/cli/), and here is the [code of cli](https://github.com/labring/laf/tree/main/cli).

When using the command line, we really look forward to it being able to autocomplete automatically!

## What to do

You can add a `completion` command to generate an automatic completion script, and also add documentation to instruct users on how to use the completion command in bash, zsh, and fish.

You can refer to the command completion documentation of K8s: https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/#enable-shell-autocompletion

### Are you willing to submit PR?

- [ ] Yes I am willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.