aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-16 15:06:30 +0000
committerFuwn <[email protected]>2021-05-16 15:06:30 +0000
commit1264de57f6147b5cfc00874b6f695e3045192166 (patch)
tree2cf65662c120492a35f463e7dc9be0f453ad2ab3
parentfeat(prompt): add a couple new builtins (diff)
downloadarchived-whirl-1264de57f6147b5cfc00874b6f695e3045192166.tar.xz
archived-whirl-1264de57f6147b5cfc00874b6f695e3045192166.zip
feat(builtins): usage note on `cat Whirl.toml`
Add a notice which states that `cat Whirl.toml` is actually just a wrapper for `config show`.
-rw-r--r--Cargo.toml1
-rw-r--r--src/prompt/builtins.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 0a445de..127b0ca 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,6 +27,7 @@ flexi_logger = "0.17.1"
rand = "0.8.3"
async-trait = "0.1.50"
sysinfo = "0.17.4"
+colour = "0.6.0"
# Byte Manipulation
bytes = "1.0.1"
diff --git a/src/prompt/builtins.rs b/src/prompt/builtins.rs
index c3150e0..18a5f8e 100644
--- a/src/prompt/builtins.rs
+++ b/src/prompt/builtins.rs
@@ -93,6 +93,7 @@ pub async fn builtin_cat(args: &[String]) -> i32 {
transfer.perform().unwrap();
}
"Whirl.toml" => {
+ colour::red_ln!("NOTE: This is just a wrapper for `config show`.");
println!("{:#?}", Config::get());
}
_ => println!("/cat: {}: no such file or directory", file),