GameCraft Mod Manager
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.

61 lines
1.1KB

  1. use std::vec::Vec;
  2. #[cfg(test)]
  3. mod tests;
  4. // public-facing library functions
  5. pub fn init(conf_dir: &str) -> bool {
  6. // TODO
  7. return conf_dir != "" && false;
  8. }
  9. pub fn install(pkg_name: &str) -> bool {
  10. // TODO
  11. return pkg_name != "" && false;
  12. }
  13. pub fn update_all() -> bool {
  14. // TODO
  15. return false;
  16. }
  17. pub fn update(pkg_name: &str) -> bool {
  18. // TODO
  19. return pkg_name != "" && false;
  20. }
  21. pub fn resolve_dependencies(pkg_name: &str) -> Vec<String> {
  22. // TODO
  23. let mut result = Vec::<String>::new();
  24. result.push(pkg_name.to_string());
  25. return result;
  26. }
  27. pub fn remove(pkg_name: &str) -> bool {
  28. // TODO
  29. return pkg_name != "" && false;
  30. }
  31. pub fn list_packages() -> Vec<String> {
  32. // TODO
  33. return Vec::<String>::new();
  34. }
  35. // remote package providers
  36. pub fn add_server(server_name: &str) -> bool {
  37. // TODO
  38. return server_name != "" && false;
  39. }
  40. pub fn remove_server(server_name: &str) -> bool {
  41. // TODO
  42. return server_name != "" && false;
  43. }
  44. pub fn list_servers() -> Vec<String> {
  45. // TODO
  46. return Vec::<String>::new();
  47. }