diff options
author | Lars Wirzenius <liw@sequoia-pgp.org> | 2022-10-15 18:19:48 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2022-10-15 18:19:48 +0300 |
commit | ae46b66d63e7338bf6fdfdfbbbeedbb03c94ddcd (patch) | |
tree | e28b41f9b619aa248510bf2ba6dbc6a69870b8da | |
parent | 25a92de0113e0697e30bddf703bb5db21f03af6c (diff) | |
download | unixtool-ae46b66d63e7338bf6fdfdfbbbeedbb03c94ddcd.tar.gz |
refactor: move things around for a simple file structure
Sponsored-by: author
-rw-r--r-- | src/cat.rs (renamed from src/cmd/cat.rs) | 0 | ||||
-rw-r--r-- | src/cmd/mod.rs | 5 | ||||
-rw-r--r-- | src/echo.rs (renamed from src/cmd/echo.rs) | 0 | ||||
-rw-r--r-- | src/lib.rs | 6 | ||||
-rw-r--r-- | src/main.rs (renamed from src/bin/unixtool.rs) | 2 |
5 files changed, 6 insertions, 7 deletions
diff --git a/src/cmd/cat.rs b/src/cat.rs index 31fdbdf..31fdbdf 100644 --- a/src/cmd/cat.rs +++ b/src/cat.rs diff --git a/src/cmd/mod.rs b/src/cmd/mod.rs deleted file mode 100644 index 5315fc1..0000000 --- a/src/cmd/mod.rs +++ /dev/null @@ -1,5 +0,0 @@ -mod echo; -pub use echo::Echo; - -mod cat; -pub use cat::Cat; diff --git a/src/cmd/echo.rs b/src/echo.rs index fbe5f6d..fbe5f6d 100644 --- a/src/cmd/echo.rs +++ b/src/echo.rs @@ -1 +1,5 @@ -pub mod cmd; +mod cat; +pub use cat::Cat; + +mod echo; +pub use echo::Echo; diff --git a/src/bin/unixtool.rs b/src/main.rs index 80c69b1..4c19d94 100644 --- a/src/bin/unixtool.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ use clap::{Parser, Subcommand}; -use unixtool::cmd::*; +use unixtool::*; fn main() -> anyhow::Result<()> { let args = Args::parse(); |