diff options
author | Pablo MartÃnez <[email protected]> | 2024-02-17 13:28:40 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-17 12:28:40 +0000 |
commit | 6810aaf0130113e267e20fb506d874cc858f5f67 (patch) | |
tree | 4cc4a597a6c40c631b9acfa8eb7685597f1da6ca /lib/python/qmk/cli | |
parent | e2dbe39b9475b0d46702e5a32432cb248d72290c (diff) | |
download | qmk_firmware-6810aaf0130113e267e20fb506d874cc858f5f67.tar.gz qmk_firmware-6810aaf0130113e267e20fb506d874cc858f5f67.zip |
[Refactor] `qmk find` (#21096)
Diffstat (limited to 'lib/python/qmk/cli')
-rw-r--r-- | lib/python/qmk/cli/find.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/find.py b/lib/python/qmk/cli/find.py index 55a0530092..8f3a29c90c 100644 --- a/lib/python/qmk/cli/find.py +++ b/lib/python/qmk/cli/find.py @@ -1,7 +1,7 @@ """Command to search through all keyboards and keymaps for a given search criteria. """ from milc import cli -from qmk.search import search_keymap_targets +from qmk.search import filter_help, search_keymap_targets @cli.argument( @@ -11,7 +11,7 @@ from qmk.search import search_keymap_targets action='append', default=[], help= # noqa: `format-python` and `pytest` don't agree here. - "Filter the list of keyboards based on their info.json data. Accepts the formats key=value, function(key), or function(key,value), eg. 'features.rgblight=true'. Valid functions are 'absent', 'contains', 'exists' and 'length'. May be passed multiple times; all filters need to match. Value may include wildcards such as '*' and '?'." # noqa: `format-python` and `pytest` don't agree here. + f"Filter the list of keyboards based on their info.json data. Accepts the formats key=value, function(key), or function(key,value), eg. 'features.rgblight=true'. Valid functions are {filter_help()}. May be passed multiple times; all filters need to match. Value may include wildcards such as '*' and '?'." # noqa: `format-python` and `pytest` don't agree here. ) @cli.argument('-p', '--print', arg_only=True, action='append', default=[], help="For each matched target, print the value of the supplied info.json key. May be passed multiple times.") @cli.argument('-km', '--keymap', type=str, default='default', help="The keymap name to build. Default is 'default'.") |