jmcore.maker_env
jmcore.maker_env
Parse the systemd assignment subset emitted by the TUI without executing it.
Attributes
KEYS = {'MNEMONIC_PASSWORD', 'BIP39_PASSPHRASE', 'EXPECTED_FINGERPRINT'}
module-attribute
Functions:
main() -> int
Read one value for shell callers (exit 1 means absent, 2 means invalid).
Source code in jmcore/src/jmcore/maker_env.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
parse_maker_env(text: str) -> dict[str, str]
Return decoded credentials, preserving whitespace inside quoted values.
Callers own file access policy. This parser neither imports environment variables nor treats a missing credential as an empty one.
Source code in jmcore/src/jmcore/maker_env.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |