Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glcon readconfig #151

Merged
merged 7 commits into from
Mar 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
  • Loading branch information
valentinedwv committed Feb 3, 2023
commit f54b2d7078c066db1a0714b08abfb8b14ffdc435
8 changes: 8 additions & 0 deletions pkg/cli/root.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package cli

import (
"fmt"
"github.com/gleanerio/gleaner/internal/common"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"os"

///"time"

Expand Down Expand Up @@ -48,6 +50,12 @@ func Execute() {

func init() {
log.Info("EarthCube Gleaner")
akey := os.Getenv("MINIO_ACCESS_KEY")
skey := os.Getenv("MINIO_SECRET_KEY")
if skey != "" || akey != "" {
fmt.Println(" MINIO_ACCESS_KEY or MINIO_SECRET_KEY are set")
fmt.Println("if this is not intentional, please unset")
}
// set in in internal/configs
//akey := os.Getenv("MINIO_ACCESS_KEY")
//skey := os.Getenv("MINIO_SECRET_KEY")
Expand Down