mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
chore: miscellaneous updates
This commit is contained in:
parent
a357effe12
commit
5049399d17
4 changed files with 18 additions and 12 deletions
|
|
@ -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 != ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue