Finished code cleanup, readme is mostly done.

This commit is contained in:
2025-04-20 20:22:57 -04:00
parent 9dcd31dd04
commit 1621023958
6 changed files with 171 additions and 25 deletions

View File

@@ -16,6 +16,9 @@ import (
"os"
)
// main is the entry point to the application. It's mostly responsible for bootstrapping the database, configuration,
// logging, and llms. It passes everything to subcommands by injecting state into the context to avoid coupling during
// initialization.
func main() {
app := &cli.Command{
Name: "ai-coding-assistant",
@@ -60,6 +63,7 @@ func main() {
}
}
// readConfig attempts to read the configuration file.
func readConfig(ctx context.Context, cmd *cli.Command) (context.Context, error) {
cfgFile := cmd.String("config")
cfgHandle, err := os.Open(cfgFile)