From 55e60eeae2baaf8d9b0ec835c4304699813858a5 Mon Sep 17 00:00:00 2001 From: radiantly Date: Wed, 7 Jul 2021 14:18:54 +0530 Subject: [PATCH] Add completions for `black` (#8123) --- CHANGELOG.rst | 3 +++ share/completions/black.fish | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 share/completions/black.fish diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2a38405f1..99c7b4288 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -22,6 +22,9 @@ Improved prompts Completions ^^^^^^^^^^^ +- Added completions for: + - ``black`` (:issue:`8123`) + - Improvements to many completions. Improved terminal support diff --git a/share/completions/black.fish b/share/completions/black.fish new file mode 100644 index 000000000..9e1e4d965 --- /dev/null +++ b/share/completions/black.fish @@ -0,0 +1,23 @@ +complete -c black -x -s c -l code -d 'Format code passed in as a string' +complete -c black -x -s l -l line-length -d 'Characters per line' +complete -c black -x -s t -l target-version -d 'Python versions supported by output' +complete -c black -l pyi -d 'Format all input files like typing stubs regardless of file extension' +complete -c black -s S -l skip-string-normalization -d "Don't normalize string quotes or prefixes" +complete -c black -s C -l skip-magic-trailing-comma -d "Don't use trailing commas as a reason to split lines" +complete -c black -l check -d "Don't write the files back, just return the status" +complete -c black -l diff -d "Don't write the files back, just output a diff for each file" +complete -c black -l color -d 'Show colored diff' +complete -c black -l no-color -d 'Do not color diff output' +complete -c black -l fast -d 'Skip temporary sanity checks' +complete -c black -l safe -d 'Do not skip temporary sanity checks' +complete -c black -x -l required-version -d 'Require a specific version of Black to be running' +complete -c black -r -l include -d 'Regular expression of items to include' +complete -c black -r -l exclude -d 'Regular expression of items to exclude' +complete -c black -r -l extend-exclude -d 'Regular expression of additional items to exclude' +complete -c black -r -l force-exclude -d 'Regular expression of Items to always exclude' +complete -c black -r -l stdin-filename -d 'The name of the file when passing through stdin' +complete -c black -s q -l quiet -d 'Only print error messages to stderr' +complete -c black -s v -l verbose -d 'Report files that were unchanged or ignored' +complete -c black -l version -d 'Show version' +complete -c black -r -l config -d 'Configuration file' +complete -c black -s h -l help -d 'Show help'