chore: made changes to build and fix issues

This commit is contained in:
David Allen 2025-06-01 14:41:06 -06:00
parent 9970e49d94
commit 0117f0355a
Signed by: towk
GPG key ID: 0430CDBE22619155
6 changed files with 91 additions and 44 deletions

View file

@ -7,7 +7,7 @@ import (
"os"
"strings"
urlx "github.com/davidallendj/magellan/internal/url"
urlx "github.com/davidallendj/magellan/internal/urlx"
"github.com/davidallendj/magellan/pkg/auth"
"github.com/davidallendj/magellan/pkg/client"
"github.com/rs/zerolog/log"
@ -40,7 +40,7 @@ var sendCmd = &cobra.Command{
// try to load access token either from env var, file, or config if var not set
if accessToken == "" {
var err error
accessToken, err = auth.LoadAccessToken(tokenPath)
accessToken, err = auth.LoadAccessToken(accessTokenPath)
if err != nil && verbose {
log.Warn().Err(err).Msgf("could not load access token")
} else if debug && accessToken != "" {