FIx shared structs + add better debugging/linting (#379)

* fix: Fixes issues w/ shared pointers to structs (#378)
* feat: Adds even better debugging and linting support (#376)

This is a #PATCH release.
This commit is contained in:
Harrison (Harry) Cramer
2024-09-16 17:06:40 -04:00
committed by GitHub
parent c3d7f26e3c
commit 5c9b88db4f
31 changed files with 191 additions and 155 deletions

View File

@@ -14,6 +14,10 @@ var pluginOptions app.PluginOptions
func main() {
log.SetFlags(0)
if len(os.Args) < 2 {
log.Fatal("Must provide server configuration")
}
err := json.Unmarshal([]byte(os.Args[1]), &pluginOptions)
app.SetPluginOptions(pluginOptions)
@@ -28,12 +32,12 @@ func main() {
log.Fatalf("Failure initializing plugin: %v", err)
}
err, client := app.NewClient()
client, err := app.NewClient()
if err != nil {
log.Fatalf("Failed to initialize Gitlab client: %v", err)
}
err, projectInfo := app.InitProjectSettings(client, gitData)
projectInfo, err := app.InitProjectSettings(client, gitData)
if err != nil {
log.Fatalf("Failed to initialize project settings: %v", err)
}