1
0
Fork 0

Speed improvements to qmk find. (#24385)

This commit is contained in:
Nick Brassel 2024-11-08 15:57:22 +11:00 committed by GitHub
parent 4f9ef90754
commit 580d18d2e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 38 additions and 9 deletions

View file

@ -1,5 +1,6 @@
"""Command to search through all keyboards and keymaps for a given search criteria.
"""
import os
from milc import cli
from qmk.search import filter_help, search_keymap_targets
from qmk.util import maybe_exit_config
@ -20,6 +21,7 @@ from qmk.util import maybe_exit_config
def find(cli):
"""Search through all keyboards and keymaps for a given search criteria.
"""
os.environ.setdefault('SKIP_SCHEMA_VALIDATION', '1')
maybe_exit_config(should_exit=False, should_reraise=True)
targets = search_keymap_targets([('all', cli.config.find.keymap)], cli.args.filter)