(verbose_legacy: bool, count: int | None, filter_text: str | None)
| 139 | |
| 140 | |
| 141 | def _warn_deprecated_console_opts(verbose_legacy: bool, count: int | None, filter_text: str | None) -> None: |
| 142 | deprecations = [ |
| 143 | (verbose_legacy, "--verbose/-v is deprecated for 'console get'. Use --stacktrace/-s instead."), |
| 144 | (count is not None, "--count/-c is deprecated. Use: u console get | head -N"), |
| 145 | (filter_text is not None, "--filter/-f is deprecated. Use: u console get | grep PATTERN"), |
| 146 | ] |
| 147 | for cond, msg in deprecations: |
| 148 | if cond: |
| 149 | print_warning(msg) |
| 150 | |
| 151 | |
| 152 | def _print_console_entries(entries: list[dict[str, Any]], include_stacktrace: bool) -> None: |
no test coverage detected