Completions for CLI
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- bash, fish, powershell, zsh
- Domaine
- cli, developer-experience
Piste de recherche
Start with the CLI's --help output and the pre-commit entry points mentioned in the issue, including pre-commit run and the proposed install-completions command. Compare how bash, zsh, fish, and PowerShell expose completion scripts. Done means cross-shell completion, help introspection, installed-hook completion, and an installation option are supported.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Following up on #1118, it would be great to have cross-shell completions for the CLI.
These could be statically autogenerated from the output of --help options.
Would be great to have
- cross-shell completions (bash, zsh, fish, powershell)
- help introspection where supported i.e.
pre-commit i<TAB>
install (Install the pre-commit script) install-hooks (Install hook environments...)
- complete for installed hooks (i.e.
pre-commit run check-<TAB>
check-added-large-files (Prevent giant files from being committed.)
check-ast (Simply check whether the files parse as valid python.)
check-toml (This hook checks toml files for parseable syntax.)
- a command line option to install the completions (i.e.
pre-commit install-completions --shell zsh).
- Langage dominant
- Python
- Étoiles
- 15.6k
- Forks
- 1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de pre-commit/pre-commit
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
pre-commit/pre-commit#3664 · 3 commentaires ·
-
bug windows
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
pre-commit/pre-commit#2530 · 6 commentaires ·
-
Use --store-dir for haskell Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 42/100
pre-commit/pre-commit#3501 · 1 commentaire ·
-
Add deno to supported languages Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 58/100
pre-commit/pre-commit#3410 · 4 commentaires · 3 réactions ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
pre-commit/pre-commit#3278 · 6 commentaires ·
Toutes les issues de pre-commit/pre-commit
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
huggingface/Repo2RLEnv#163 · 1 commentaire ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
NousResearch/hermes-agent#121143 ·