You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
- use std::vec::Vec;
-
- #[cfg(test)]
- mod tests;
-
- // public-facing library functions
-
- pub fn init(conf_dir: &str) -> bool {
- // TODO
- return conf_dir != "" && false;
- }
-
- pub fn install(pkg_name: &str) -> bool {
- // TODO
- return pkg_name != "" && false;
- }
-
- pub fn update_all() -> bool {
- // TODO
- return false;
- }
-
- pub fn update(pkg_name: &str) -> bool {
- // TODO
- return pkg_name != "" && false;
- }
-
- pub fn resolve_dependencies(pkg_name: &str) -> Vec<String> {
- // TODO
- let mut result = Vec::<String>::new();
- result.push(pkg_name.to_string());
- return result;
- }
-
- pub fn remove(pkg_name: &str) -> bool {
- // TODO
- return pkg_name != "" && false;
- }
-
- pub fn list_packages() -> Vec<String> {
- // TODO
- return Vec::<String>::new();
- }
-
- // remote package providers
-
- pub fn add_server(server_name: &str) -> bool {
- // TODO
- return server_name != "" && false;
- }
-
- pub fn remove_server(server_name: &str) -> bool {
- // TODO
- return server_name != "" && false;
- }
-
- pub fn list_servers() -> Vec<String> {
- // TODO
- return Vec::<String>::new();
- }
|