diff --git a/TODO.md b/TODO.md index 68d1aeb..802b96b 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1 @@ -- Push scheme generation to `~/.config/autoconf` -- Copy default app registry to the config location -- Formalize the theme spec (JSON) and `autoconf gen` to produce color configs -- Likely need to formalize the `sync.sh` script logic better, possibly associated directly - with registry TOML +- Add local app caching for `auto` logic diff --git a/pyproject.toml b/pyproject.toml index ac9b73b..29e6209 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,9 @@ dependencies = [ "colorama", ] +[project.scripts] +symconf = "symconf.__main__:main" + [project.optional-dependencies] tests = ["pytest"] docs = [ diff --git a/symconf/__main__.py b/symconf/__main__.py index 5870d1d..6e60f3f 100644 --- a/symconf/__main__.py +++ b/symconf/__main__.py @@ -92,10 +92,13 @@ subparsers = parser.add_subparsers(title='subcommand actions') add_set_subparser(subparsers) -if __name__ == '__main__': +def main(): args = parser.parse_args() if 'func' in args: args.func(args) else: parser.print_help() + +if __name__ == '__main__': + main() diff --git a/symconf/config.py b/symconf/config.py index 4c8551a..742f150 100644 --- a/symconf/config.py +++ b/symconf/config.py @@ -345,8 +345,6 @@ class ConfigManager: group_matches[fkey] = list(match_dict.values()) - print(group_matches) - # first handle scheme maps; matching palette files should already be found in the # regular group matching process palette_dict = self._stack_toml(group_matches.get('palette', []))