summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index a3f69dd..c38d265 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,7 +5,6 @@ mod pkgtoolkit;
use crate::cfg::config::Config;
#[allow(unused_imports)]
use crate::pkgtoolkit::pkgtools::Package;
-#[allow(unused_imports)]
use crate::i2impl::mi2p::I2P;
use clap::{Args, Command, Parser, Subcommand};
@@ -26,7 +25,7 @@ struct Cli {
enum Commands {
#[command(about = "Validate .mesk package archive")]
Validate {
- pkgname: String,
+ path: String,
},
#[command(about = "Update all repositories index")]
Update,
@@ -56,8 +55,9 @@ enum Commands {
repo: Option<String>,
cachedir: Option<String>,
buildir: Option<String>,
- }
-
+ },
+ #[command(about = "Maintaners, links, developers and more info")]
+ Credits
}
#[derive(Args, Clone)]
@@ -77,8 +77,8 @@ async fn main() -> Result<(), std::io::Error> {
// Plug in these functions only until the backend is ready for testing (Aplha versions)
// It is necessary for me to understand the I/O model of the future mesk.
match &cli.command {
- Commands::Validate { pkgname } => {
- println!("Validating {}", pkgname);
+ Commands::Validate { path } => {
+ println!("Validating {}", path);
return Ok(())
},
Commands::Build { pkgname } => {
@@ -144,8 +144,13 @@ async fn main() -> Result<(), std::io::Error> {
println!("Upgrading all packages");
return Ok(())
},
+ Commands::Credits => {
+ println!("CREATED BY: Asya and Namilsk as part of the Anthrill independent Global network distribution project");
+ println!(" ");
+ println!("The Anthrill project repos: https://codeberg.org/NamelessTeam");
+ }
+ }
+ Ok(())
-}
-Ok(())
} \ No newline at end of file