From c603c403b6e7b2f7c5d84d8afde6fe3ac385c50f Mon Sep 17 00:00:00 2001 From: Didier Date: Sun, 16 Jul 2023 20:06:38 +0200 Subject: [PATCH] fix: update to spec --- pkgr/src/commands/mod.rs | 3 ++- pkgr/src/main.rs | 1 + pkgr/src/prelude.rs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 pkgr/src/prelude.rs diff --git a/pkgr/src/commands/mod.rs b/pkgr/src/commands/mod.rs index 61e3fe8..7f18ebd 100644 --- a/pkgr/src/commands/mod.rs +++ b/pkgr/src/commands/mod.rs @@ -1,7 +1,8 @@ use crate::package::identifier::PackageIdentifier; +use crate::prelude::Arguments; pub enum Command { - Grab(PackageIdentifier), // grab a package from a remote source + Install(Arguments, PackageIdentifier), // install a package from a remote source Remove(PackageIdentifier), // remove a package from the local source List, // list all packages in the local source Update, diff --git a/pkgr/src/main.rs b/pkgr/src/main.rs index 8d75350..9029074 100644 --- a/pkgr/src/main.rs +++ b/pkgr/src/main.rs @@ -5,6 +5,7 @@ use std::str::FromStr; use getopts::Options; use log::{info, SetLoggerError}; +mod prelude; mod commands; mod package; diff --git a/pkgr/src/prelude.rs b/pkgr/src/prelude.rs new file mode 100644 index 0000000..d7ac579 --- /dev/null +++ b/pkgr/src/prelude.rs @@ -0,0 +1 @@ +pub struct Arguments(Vec); \ No newline at end of file