You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add flag for toggling daemon mode
The DAEMON flag (defaults true) toggles whether to start a run
loop or execute run() once and exit.
* Refactor daemon flag
* Correct indentation
Copy file name to clipboardExpand all lines: main.go
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ func setupViper() {
28
28
tokenDuration=flag.String("CODEARTIFACT_DURATION", os.Getenv("CODEARTIFACT_DURATION"), "duration of the AWS CodeArtifact authToken")
29
29
codeartifactDomain=flag.String("CODEARTIFACT_DOMAIN", os.Getenv("CODEARTIFACT_DOMAIN"), "AWS CodeArtifact Domain for which access is required")
30
30
codeartifactDomainOwner=flag.String("CODEARTIFACT_DOMAIN_OWNER", os.Getenv("CODEARTIFACT_DOMAIN_OWNER"), "owner (AWS acc) for the AWS CodeArtifact domain")
31
+
daemon=flag.Bool("DAEMON", true, "whether to run in Daemon mode, re-authenticating every 10 hours.")
0 commit comments