Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] qmk find #21096

Merged
merged 7 commits into from
Feb 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
lint
  • Loading branch information
zvecr committed Feb 16, 2024
commit 28169fff63d2689f0e99731a80b864998aaf101e
2 changes: 2 additions & 0 deletions lib/python/qmk/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def apply(self, target_info: TargetInfo) -> bool:
_kb, _km, info = target_info
return (self.key in info and len(info[self.key]) == int(self.value))


class Contains(FilterFunction):
func_name = "contains"

Expand All @@ -90,6 +91,7 @@ def filter_help() -> str:
names = [f"'{f.func_name}'" for f in FilterFunction.__subclasses__()]
return ", ".join(names[:-1]) + f" and {names[-1]}"


def _set_log_level(level):
cli.acquire_lock()
old = cli.log_level
Expand Down
Loading