|
55 | 55 | from detect_secrets.core import scan, plugins |
56 | 56 | from detect_secrets.core.potential_secret import PotentialSecret |
57 | 57 | from detect_secrets.settings import configure_settings_from_baseline, default_settings |
58 | | -from parsy import Parser, string, ParseError |
59 | 58 | from fixclient.models import Model as RCModel, Kind as RCKind |
| 59 | +from fixdatalink import EngineConfig |
| 60 | +from fixdatalink.batch_stream import BatchStream |
| 61 | +from fixdatalink.collect_plugins import update_sql |
| 62 | +from parsy import Parser, string, ParseError |
| 63 | +from rich.padding import Padding |
| 64 | +from rich.panel import Panel |
| 65 | +from rich.table import Table |
| 66 | +from rich.text import Text |
| 67 | + |
60 | 68 | from fixcore import version |
61 | 69 | from fixcore.async_extensions import run_async |
62 | 70 | from fixcore.cli import ( |
|
170 | 178 | respond_cytoscape, |
171 | 179 | ) |
172 | 180 | from fixcore.worker_task_queue import WorkerTask, WorkerTaskName |
173 | | -from fixdatalink import EngineConfig |
174 | | -from fixdatalink.batch_stream import BatchStream |
175 | | -from fixdatalink.collect_plugins import update_sql |
176 | 181 | from fixlib.core import CLIEnvelope |
177 | 182 | from fixlib.durations import parse_duration |
178 | 183 | from fixlib.parse_util import ( |
|
188 | 193 | ) |
189 | 194 | from fixlib.utils import safe_members_in_tarfile, get_local_tzinfo |
190 | 195 | from fixlib.x509 import write_cert_to_file, write_key_to_file |
191 | | -from rich.padding import Padding |
192 | | -from rich.panel import Panel |
193 | | -from rich.table import Table |
194 | | -from rich.text import Text |
195 | 196 |
|
196 | 197 | if TYPE_CHECKING: |
197 | 198 | from fixcore.dependencies import TenantDependencies |
@@ -2638,7 +2639,11 @@ def parse(self, arg: Optional[str] = None, ctx: CLIContext = EmptyContext, **kwa |
2638 | 2639 | is_aggregate: bool = ctx.query is not None and ctx.query.aggregate is not None |
2639 | 2640 |
|
2640 | 2641 | def display(name: str) -> str: |
2641 | | - return " ".join(word.capitalize() for word in name.split("_")) |
| 2642 | + return " \u279E ".join( |
| 2643 | + " ".join((word[0].upper() + word[1:]).strip("`") for word in part.replace("_", " ").split(" ") if word) |
| 2644 | + for part in PropertyPath.from_string(name).path |
| 2645 | + if part is not None and part not in Section.content |
| 2646 | + ) |
2642 | 2647 |
|
2643 | 2648 | def default_props_to_show( |
2644 | 2649 | props_setting: Tuple[List[PropToShow], List[PropToShow], List[PropToShow], List[PropToShow]] |
@@ -2725,7 +2730,7 @@ def parse_props_to_show(props_arg: str) -> List[PropToShow]: |
2725 | 2730 | for prop, as_name in list_arg_parse.parse(props_arg): |
2726 | 2731 | path = adjust_path(prop) |
2727 | 2732 | as_name = path[-1] if prop == as_name or as_name is None else as_name |
2728 | | - props.append(PropToShow(path, as_name, display(as_name), prop)) |
| 2733 | + props.append(PropToShow(path, as_name, display(prop), prop)) |
2729 | 2734 | return props |
2730 | 2735 |
|
2731 | 2736 | def create_unique_names(all_props: List[PropToShow]) -> List[PropToShow]: |
|
0 commit comments