rename project
This commit is contained in:
parent
fa47639ef3
commit
d631bba13b
6 changed files with 14 additions and 14 deletions
20
Cargo.lock
generated
20
Cargo.lock
generated
|
@ -45,6 +45,16 @@ version = "1.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "crsh"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"mlua",
|
||||||
|
"shellexpand",
|
||||||
|
"shlex",
|
||||||
|
"whoami",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dirs"
|
name = "dirs"
|
||||||
version = "6.0.0"
|
version = "6.0.0"
|
||||||
|
@ -245,16 +255,6 @@ dependencies = [
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "rush"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"mlua",
|
|
||||||
"shellexpand",
|
|
||||||
"shlex",
|
|
||||||
"whoami",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustc-hash"
|
name = "rustc-hash"
|
||||||
version = "2.1.1"
|
version = "2.1.1"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rush"
|
name = "crsh"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# RuSH
|
# Crab Shell
|
||||||
|
|
||||||
Learning rust by making a shell.
|
Learning rust by making a shell.
|
||||||
|
|
|
@ -15,7 +15,7 @@ pub fn cd(args: &[String]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn help() {
|
pub fn help() {
|
||||||
println!("RuSH v0.1.0");
|
println!("crsh v0.1.0");
|
||||||
println!("---------------------");
|
println!("---------------------");
|
||||||
println!("Available Commands:");
|
println!("Available Commands:");
|
||||||
println!(" cd - Change directory");
|
println!(" cd - Change directory");
|
||||||
|
|
|
@ -58,7 +58,7 @@ fn main() {
|
||||||
let lua = Lua::new();
|
let lua = Lua::new();
|
||||||
|
|
||||||
// Retreive Lua source code from configuration file.
|
// Retreive Lua source code from configuration file.
|
||||||
lua.load("config = require 'rush'")
|
lua.load("config = require 'crsh'")
|
||||||
.exec()
|
.exec()
|
||||||
.expect("Failed to load configuration.");
|
.expect("Failed to load configuration.");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue