Skip to content

Add env library to Talaria#31

Open
engelhartrueben wants to merge 12 commits intomainfrom
re/talaria-env-lib-updated
Open

Add env library to Talaria#31
engelhartrueben wants to merge 12 commits intomainfrom
re/talaria-env-lib-updated

Conversation

@engelhartrueben
Copy link
Copy Markdown
Collaborator

Add env library

Added functions to talaria/src/stdlib/env.rs:

get(key: String) -> Result<String, Box<EvalAltResult>> : gets the specified environment variable
remove(key: &str) -> Result<(), Box<EvalAltResult>> : removes the specified environment variable
set(key: &str, value: &str) -> Result<(), Box<EvalAltResult>> : sets an environment variable
list() -> Result<Vec(Dynamic, Dynamic)>, Box<EvalAltResult>>: returns a list of all environment variables

Notes

All functions are untested on Windows and BSD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants