Expand description
Environment variables used by radicle.
Modules§
- consts
- Constants associated with the current target
Structs§
- Args
- An iterator over the arguments of a process, yielding a
Stringvalue for each argument. - ArgsOs
- An iterator over the arguments of a process, yielding an
OsStringvalue for each argument. - Join
Paths Error - The error type for operations on the
PATHvariable. Possibly returned fromenv::join_paths(). - Split
Paths - An iterator that splits an environment variable into paths according to platform-specific conventions.
- Vars
- An iterator over a snapshot of the environment variables of this process.
- VarsOs
- An iterator over a snapshot of the environment variables of this process.
Enums§
- VarError
- The error type for operations interacting with environment variables.
Possibly returned from
env::var().
Constants§
- GIT_
COMMITTER_ DATE - RAD_
COMMIT_ TIME - Environment variable to set to overwrite the commit date for both the author and the committer.
- RAD_
DEBUG - RAD_
HINT - Show radicle hints.
- RAD_
HOME - Path to the radicle home folder.
- RAD_
KEYGEN_ SEED - Private key seed. Used for generating deterministic keypairs.
- RAD_
LOCAL_ TIME - Override the device’s local time. The format must be a unix timestamp.
- RAD_
PASSPHRASE - Passphrase for the encrypted radicle secret key.
- RAD_
RNG_ SEED - RNG seed. Must be convertible to a
u64. - RAD_
SOCKET - Path to the radicle node socket file.
Functions§
- args
- Returns the arguments that this program was started with (normally passed via the command line).
- args_os
- Returns the arguments that this program was started with (normally passed via the command line).
- commit_
time - Commit timestamp to use. Can be overriden by
RAD_COMMIT_TIME. - current_
dir - Returns the current working directory as a
PathBuf. - current_
exe - Returns the full filesystem path of the current running executable.
- debug
- Whether debug mode is on.
- hints
- Whether or not to show hints.
- home_
dir - Returns the path of the current user’s home directory if known.
- join_
paths - Joins a collection of
Paths appropriately for thePATHenvironment variable. - local_
time - Local time. Can be overriden by
RAD_LOCAL_TIME. - pager
- Get the configured pager program from the environment.
- passphrase
- Get the radicle passphrase from the environment.
- remove_
var ⚠ - Removes an environment variable from the environment of the currently running process.
- rng
- Get a random number generator from the environment.
- seed
- Return the seed stored in the
RAD_KEYGEN_SEEDenvironment variable, or generate a random one. - set_
current_ dir - Changes the current working directory to the specified path.
- set_var⚠
- Sets the environment variable
keyto the valuevaluefor the currently running process. - split_
paths - Parses input according to platform conventions for the
PATHenvironment variable. - temp_
dir - Returns the path of a temporary directory.
- var
- Fetches the environment variable
keyfrom the current process. - var_os
- Fetches the environment variable
keyfrom the current process, returningNoneif the variable isn’t set or if there is another error. - vars
- Returns an iterator of (variable, value) pairs of strings, for all the environment variables of the current process.
- vars_os
- Returns an iterator of (variable, value) pairs of OS strings, for all the environment variables of the current process.