Refactored main.go into cmd/jobsearch/main.go (in case separate commands are introduced later) which has required the options mechanism to change slightly as well as the logging.

This commit is contained in:
bwilliams committed 2026-10-09 09:29:42 +01:00
1 parent de3ebf68c5
commit 6436253629
14 files changed
+273 -224

No files matched your search

+1 -5
View File
@@ -37,7 +37,7 @@ func NewCommand() *cobra.Command {
Run: func(cmd *cobra.Command, args []string) {
slog.Debug("version.Run")
fmt.Printf("PBCNinja - %s\n", version.Version)
fmt.Printf("JobSearch - %s\n", version.Version)
if version.BuildTime != "unknown" {
fmt.Printf("Built: %s\n", version.BuildTime)
}
@@ -45,10 +45,6 @@ func NewCommand() *cobra.Command {
fmt.Printf("Commit: %s\n", version.GitCommit)
}
},
Annotations: map[string]string{
"no_config": "1",
"terminal_log": "1",
},
}
return cmd
}