diff --git a/cli/commands/show.py b/cli/commands/show.py index 5e3ac6c..3222113 100644 --- a/cli/commands/show.py +++ b/cli/commands/show.py @@ -8,5 +8,6 @@ def add_parser(sp: ap._SubParsersAction[ap.ArgumentParser]): dest="show", required=True, ) + show_sp.add_parser("config", help="show details about your configuration. Alias of config show") pkgs = show_sp.add_parser("pkgs", help="show details on package presets") pkgs.add_argument("show_pkg") diff --git a/commands/config.py b/commands/config.py index f1642c7..3350315 100644 --- a/commands/config.py +++ b/commands/config.py @@ -8,3 +8,6 @@ def config(args: argparse.Namespace, config: ArchMgrConfig): Your config can be found at """) print(config) + elif args.conf_update == "pkgs": + print("Updating config's package list") + # TODO: Config saver diff --git a/notes.md b/notes.md index 979a1d1..fbef2ab 100644 --- a/notes.md +++ b/notes.md @@ -8,15 +8,22 @@ - Retrieve explicitly installed packages and remove those that are not present in goal and install those that are not present in current state +# Concept for updating config automatically +1. Track which files contain the setting +2. If there are multiple and is no array, then simply overwrite the last +3. If there are multiple and is array, then remove from the file where it is present and add to last file in requires list +-> To enable this, update the loader to keep more metadata (list of all requires, list of files for each setting) + + # Ideas -- [ ] function to collect new configs -- [ ] config options for users and groups +- [X] function to collect new configs -> Not smart because templates +- [X] config options for users and groups - [ ] presets for things like desktops (like Hyprland) - [ ] config options for the template rendering - [ ] config options for themes - [ ] grub config - [ ] Dynamic selection of more configs (i.e. require syntax) -- [ ] Own config syntax? +- [X] Own config syntax? -> just use yaml - [ ] Autocompletion - [ ] Basic arch install how? -> Probably manual (or semi-automatic) - [ ] Mounts?