Commit Graph

8 Commits

Author SHA1 Message Date
garret 771a31da35 depctrl global config: use depctrl's config handler
better than finding a file that's probably the config, parsing the json, and writing it back in,
for obvious reasons

turns out no i wasnt thinning out the soup too much
twas just right

Reason for adding values one by one in key-pair loop instead of just config = new_config:

> [01:31] arch1t3cht: oh, I think you can't assign entire tables to DependencyControl.config.c
> [01:31] arch1t3cht: like, you can't do DependencyControl.config.c = <my new config>,
>                     you should do DependencyControl.config.myfield = <my new value> and whatnot
> [01:32] arch1t3cht: because behind the scenes it uses metatable magic to track what field changes
>                     so it can merge its own changes with ones that other scripts made in the meantime

Co-Authored-By: arch1t3cht <arch1t3cht@gmail.com>
2022-12-21 07:03:15 +00:00
garret 2ec8caee58 depctrl global config: add extra feeds support 2022-11-24 08:21:32 +00:00
garret c3454654c5 depctrl global config: only pass config to functions instead of whole file 2022-11-24 00:19:32 +00:00
garret 2d90b8e6df depctrl global config: clean up, split into more functions 2022-11-24 00:19:27 +00:00
garret 74feac83bb depctrl global config: don't be stupid
no longer rewrites the entire config below the existing one(!)
added forgotten local variables, removed unnecessary ones
fixed a typo
2022-11-23 20:42:05 +00:00
garret 9a260cb6d2 depctrl global config: add reset button 2022-11-23 20:41:33 +00:00
garret 1b2340131b depctrl global config: remove debug library import
oops
2022-07-12 04:49:28 +01:00
garret 59db2ff04d add depctrl global config macro 2022-07-11 21:21:24 +01:00