summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-09 22:47:25 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-09 22:47:25 -0500
commit3c30ee54cd8dc8c9bf43beb54ee1fe0292c07c90 (patch)
tree4abda6dc620620b860e6990cf7e4651fac74619b
parentcba75be9c673b846ad0c4f6f5f2e8461056582ad (diff)
downloadnbsh-3c30ee54cd8dc8c9bf43beb54ee1fe0292c07c90.tar.gz
nbsh-3c30ee54cd8dc8c9bf43beb54ee1fe0292c07c90.zip
rename
-rw-r--r--src/main.rs4
-rw-r--r--src/runner/mod.rs2
-rw-r--r--src/shell/mod.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 2096b46..5c9d0b2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -23,10 +23,10 @@ mod shell;
async fn async_main() -> anyhow::Result<i32> {
if std::env::args().nth(1).as_deref() == Some("--internal-cmd-runner") {
- return runner::run().await;
+ return runner::main().await;
}
- shell::run().await
+ shell::main().await
}
fn main() {
diff --git a/src/runner/mod.rs b/src/runner/mod.rs
index 3d4d025..956afde 100644
--- a/src/runner/mod.rs
+++ b/src/runner/mod.rs
@@ -68,7 +68,7 @@ enum Frame {
For(bool, usize, Vec<String>),
}
-pub async fn run() -> anyhow::Result<i32> {
+pub async fn main() -> anyhow::Result<i32> {
// Safety: we don't create File instances for or read/write data on fds
// 3 or 4 anywhere else
let shell_read = unsafe { async_std::fs::File::from_raw_fd(3) };
diff --git a/src/shell/mod.rs b/src/shell/mod.rs
index 04cf385..4501ce9 100644
--- a/src/shell/mod.rs
+++ b/src/shell/mod.rs
@@ -7,7 +7,7 @@ mod history;
mod prelude;
mod readline;
-pub async fn run() -> anyhow::Result<i32> {
+pub async fn main() -> anyhow::Result<i32> {
let mut input = textmode::Input::new().await?;
let mut output = textmode::Output::new().await?;