diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-21 12:00:16 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-21 12:00:16 -0600 |
| commit | 2854b695a0df016ef1a9c67303c15911b0ed4b72 (patch) | |
| tree | 80d492014012b4b6d4e8e99fc30f0ee8afc43e51 /cmd/sparkled | |
| parent | 49a8ef7441ac9355a7a8e4890f0a1c9004571f37 (diff) | |
refactor: provide the root dir as a parameter
Diffstat (limited to 'cmd/sparkled')
| -rw-r--r-- | cmd/sparkled/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/sparkled/main.go b/cmd/sparkled/main.go index 5eec970..7bec1b7 100644 --- a/cmd/sparkled/main.go +++ b/cmd/sparkled/main.go @@ -3,8 +3,10 @@ package main import ( "log" "net/http" + "os" "github.com/xlgmokha/x/pkg/env" + "github.com/xlgmokha/x/pkg/x" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app" ) @@ -14,6 +16,6 @@ func main() { log.Fatal(http.ListenAndServe( bindAddr, - app.New(), + app.New(x.Must(os.Getwd())), )) } |
