From d41e2afe17722d921d3e05389c1dbc894f92a4cc Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Thu, 27 Mar 2025 21:43:36 +0100 Subject: [PATCH] Update --- main.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/main.go b/main.go index ba4ea64..d45609a 100644 --- a/main.go +++ b/main.go @@ -96,6 +96,26 @@ func main() { flag.Usage() return } + // The plan is: + // Load all commands + // Then aggregate all the globs and deduplicate them + // Resolve all the files for all the globs + // Read each file into memory (could be much? Probably not... + // Somehow connect files to commands via globs.. + // Maybe do.... + // For each file check every glob of every command + // Maybe memoize this part + // That way we know what commands affect what files + // Then for each file run all commands associated with the file + // Aggregate all the modifications and execute them + // Taking care of the whole duplicates and shit + // This will also relieve processor of some of the file loading + // But we will also have to rework the tests....... + // Also give each command its own logger, maybe prefix it with something... Maybe give commands a name? + // Do that with logger.WithField("loglevel", level.String()) + // Since each command also has its own log level + // TODO: Maybe even figure out how to run individual commands...? + // TODO: What to do with git? Figure it out .... commands, err = LoadCommandFromArgs(args, commands) if err != nil {