feat(cli): More argument handling
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user