From f36a74c805cdbacaa671fd4019204ed3889bae55 Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 6 Aug 2022 04:31:48 -0400 Subject: stop using platform, start using subprocess also did some more refactoring :trollfig: --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c20e341..b9433a0 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,18 @@ hiccup is a python script that attempts to upgrade your system with multiple package managers. ## how it works -hiccup reads from `$XDG_CONFIG_HOME/hiccup/config.json`. this file specifies distros (by their freedesktop id), shell plugin -managers, and other package managers, paired with a command that runs an update - see `default-config.json`. +hiccup reads from `$XDG_CONFIG_HOME/hiccup/config.json`. this file must contain 5 objects: + +- `system_update_cmds` +- `extra_cmds` +- `clean_cmds` +- `shell_plugin_cmds` +- `other_cmds` + +the value for most keys will be run with `bash -c`, but values in `system_update_cmds` and `clean_cmds` +will run with `sudo bash -c` and values in `shell_plugin_cmds` will run with name of the shell specified. + +see `default-config.json` for example ## how to install hiccup only needs one command to install :) -- cgit v1.2.3