Crates.io | riji |
lib.rs | riji |
version | 0.1.13 |
source | src |
created_at | 2022-05-10 18:23:36.374197 |
updated_at | 2023-09-18 20:21:26.388733 |
description | Scripting environment using rhai |
homepage | |
repository | https://github.com/fire-lib/riji |
max_upload_size | |
id | 584108 |
size | 71,333 |
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_v4
env_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.execute
cmd.output
cmd::execute_parallel
fs::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) -> bool
regex.replace(where: str, with: str)
regex.find(in: str) -> str
regex.captures(in: str) -> [str]
regex.captures_all(in: str) -> [str]
regex.replace_file(path: str, with: str)
regex.matches_file(path: str) -> bool
toml::read(str)
toml::parse(str)
toml::write(str, dyn)
toml::stringify(dyn)