chore: miscellaneous updates

This commit is contained in:
David Allen 2025-05-26 22:51:58 -06:00
parent a357effe12
commit 5049399d17
Signed by: towk
GPG key ID: 0430CDBE22619155
4 changed files with 18 additions and 12 deletions

View file

@ -18,6 +18,7 @@ import (
"fmt"
"net"
"os"
"os/user"
magellan "github.com/davidallendj/magellan/internal"
"github.com/davidallendj/magellan/internal/util"
@ -36,6 +37,7 @@ const (
// CLI arguments as variables to not fiddle with error-prone strings
var (
currentUser *user.User
accessToken string
timeout int
concurrency int
@ -193,3 +195,7 @@ func initSecretsStore(uri string) secrets.SecretStore {
}
return store
}
func validSecretArgs(masterKey string, secretsFile string) bool {
return masterKey != "" && secretsFile != ""
}