We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e8bb7a commit 3d071e6Copy full SHA for 3d071e6
src/sessionmanagerplugin-main/main.go
@@ -22,6 +22,14 @@ import (
22
_ "github.com/aws/session-manager-plugin/src/sessionmanagerplugin/session/shellsession"
23
)
24
25
+var out = os.Stdout
26
+
27
+func init() {
28
+ if quietStr := os.Getenv("AWS_SSM_QUIET"); quietStr == "true" || quietStr == "1" {
29
+ out = os.Stderr
30
+ }
31
+}
32
33
func main() {
- session.ValidateInputAndStartSession(os.Args, os.Stdout)
34
+ session.ValidateInputAndStartSession(os.Args, out)
35
}
0 commit comments