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