Skip to content
Snippets Groups Projects
Verified Commit 4821087b authored by Levente Polyak's avatar Levente Polyak :rocket:
Browse files

feature(keyringctl): mark main keys bold during inspect highlight

parent b32c37be
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ from .trust import certificate_trust_from_paths
from .trust import filter_by_trust
from .trust import format_trust_label
from .trust import trust_color
from .types import Color
from .types import Fingerprint
from .types import Trust
from .types import TrustFilter
......@@ -1179,7 +1180,9 @@ def inspect_keyring(working_dir: Path, keyring_root: Path, sources: Optional[Lis
fingerprints: Dict[Fingerprint, Username] = get_fingerprints_from_certificate_directory(
paths=[keyring_root / "packager"]
) | get_fingerprints_from_certificate_directory(paths=[keyring_root / "main"], postfix=" (main)")
) | get_fingerprints_from_certificate_directory(
paths=[keyring_root / "main"], postfix=f" {Color.BOLD.value}(main){Color.RST.value}"
)
main_keys = get_fingerprints_from_paths([keyring_root / "main"])
all_fingerprints = get_fingerprints_from_paths([keyring_root])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment