Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
fnox 1.39.0: fnox env --json und Daemon-Client-Crate
Mit fnox 1.39.0 können andere Tools wie mise über fnox env --json oder den neuen fnox-client Crate dieselbe Umgebung abrufen, die fnox exec einem Befehl liefern würde.
fnox 1.39.0 lets other tools, starting with mise, get the same environment that fnox exec would give a command. They can run fnox env --json, or use the new fnox-client crate to read it straight from a running daemon's cache.
Added
fnox env --json(#936) by @jdx. Prints a versioned JSON document describing the environment for a command. It hasset(variables),files(as_filecontents for the caller to write, so fnox leaves no files behind),remove(variables to unset),missingandleases. Callers applyremove, thenset, thenfiles.fnox env --json --keys DATABASE_URL,GCP_SA_JSON fnox env --json --describe # list keys and where they can be injected, without resolving anything--for exec(the default) coversenv = trueandenv = "exec"secrets plus leases.--for shellcovers onlyenv = truesecrets and runs no leases.--keys(repeatable, comma-separated) resolves only the listed keys and the secrets they depend on.env = falsesecrets are never printed.- Errors are also printed as JSON on stdout (
config,invalid_keys,resolution) and exit with status 1. --describenever contacts the daemon, creates leases or prompts. With--keys, it checks the keys up front. Its output includesdaemon_enabled. …