Crate crab_env

Crate crab_env 

Source
Expand description

Provides utilities for developing Crates for the Crab-Shell.

The most useful one is the Environment struct,

Structs§

Environment
Struct that contains all Crab-Shell variables.

Constants§

CONFIG_PATH
ENV_DEFAULT
ORANGE

Statics§

CRATES
List of Crates currently installed.
CRATES_PATH
ENV_PATH
PROJECT_DIRS
Returns Crab-Shell’s main directories paths (CONFIG and DATA).
USER_DIRS

Functions§

load
Loads the current Environment from CONFIG_PATH/env.toml and returns it.
load_into
Loads the current Environment from CONFIG_PATH/env.toml into the provided env, overwriting it.
print_message
Prints a bold orange message
save
Saves Environment into CONFIG_PATH/env.toml