From 7c08579eccc3c53302fbc28ab8c9d41c04b05e68 Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:39:42 +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