aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
AgeCommit message (Collapse)Author
2021-11-12More colors!Daniel Schadt
The user_choice() function was a bit weird because it needed a "formatted" item for every item to select (not using the Display of the item), but it also didn't support colored output. This change fixes that by introducing a new trait that does colored output and by making user_choice() use that trait to output the lines.
2021-11-09move install code to own moduleDaniel Schadt
2021-11-09enable SubcommandRequired & ColoredHelpDaniel Schadt
Especially SubcommandRequired is helpful, as without one, we're not doing all that much.
2021-11-09split mod install logicDaniel Schadt
Previously, install_mod was a huge function that did a lot of things at once. Not only did it do the actual mod copying, it also had the dependency resolution, user interaction, ... Now, we've split the code and made it more re-usable. The dependency resolution is done in Baas::install, with special "hooks" being given in baas::Installer that allow a consumer to customize the installation and embed the user interaction there. The code itself is pretty much the same, it is just split up now.
2021-11-09Rename --fix-permissions to --chownDaniel Schadt
On second thought, we're just calling chown, so let's call it that.
2021-11-09Add some command line help textsDaniel Schadt
2021-11-09add -p flag to fix permissionsDaniel Schadt
This is useful if you run modderbaas as root but want the resulting directories to be owned by the right uid/gid.
2021-11-06support installing modpacksDaniel Schadt
2021-11-06add a dry-run mode to installDaniel Schadt
2021-11-06Initial commitDaniel Schadt
This is the inital commit of a somewhat working version.