| Crates.io | riji |
| lib.rs | riji |
| version | 0.1.16 |
| created_at | 2022-05-10 18:23:36.374197+00 |
| updated_at | 2025-02-09 00:42:52.743152+00 |
| description | Scripting environment using rhai |
| homepage | |
| repository | https://github.com/chuchi-dev/riji |
| max_upload_size | |
| id | 584108 |
| size | 76,039 |
This is a library and a binary.
The api may not be stable. You should probably not use this crate.
print(str|array|bool)debug(str|array)prompt(str)panic(str)uuid_v4env_var(str)trim(str)lowercase(str)uppercase(str)starts_with(str, str)ends_with(str, str)sort_strs(array)env_os() returns windows | linux | unknownsleep(ms)cmd(str|array)cmd.arg(str)cmd.args(array)cmd.dir(str)cmd.env(str, str)cmd.env_clear()cmd.executecmd.outputcmd::execute_parallelfs::is_dir(str)fs::is_file(str)fs::is_prog(str)fs::create_dir(str)fs::write(str, str|array) array is converted to linesfs::read(str)fs::delete(str)fs::move(str, str)fs::copy(str, str)fs::full_path(str)fs::append(path: str, str|array) array is converted to linesfs::contains(str, str)fs::read_dir(str)fs::which(str)git(path: str)git_clone(url: str, path: str)git.diff()git.apply_diff(diff)git.force_head()git.checkout_tag(str)diff_from_file(str)diff.print()diff.to_file(str)diff.to_string()diff_from_file(str)regex(pat: str)regex.matches(in: str) -> boolregex.replace(where: str, with: str)regex.find(in: str) -> strregex.captures(in: str) -> [str]regex.captures_all(in: str) -> [str]regex.replace_file(path: str, with: str)regex.matches_file(path: str) -> booltoml::read(str)toml::parse(str)toml::write(str, dyn)toml::stringify(dyn)