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§
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