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
fmt.Printf("Successfully joined clipboard, config written to %s\n", pcopy.CollapseHome(configFile))
148
+
fmt.Fprintf(c.App.ErrWriter, "Successfully joined clipboard, config written to %s\n", pcopy.CollapseHome(configFile))
149
149
} else {
150
-
fmt.Printf("Successfully joined clipboard as alias '%s', config written to %s\n", clipboard, pcopy.CollapseHome(configFile))
150
+
fmt.Fprintf(c.App.ErrWriter, "Successfully joined clipboard as alias '%s', config written to %s\n", clipboard, pcopy.CollapseHome(configFile))
151
151
}
152
152
153
153
ifinfo.Cert!=nil {
154
-
fmt.Println()
155
-
fmt.Println("Warning: The TLS certificate was self-signed and has been pinned.")
156
-
fmt.Println("Future communication will be secure, but joining could have been intercepted.")
154
+
fmt.Fprintln(c.App.ErrWriter)
155
+
fmt.Fprintln(c.App.ErrWriter, "Warning: The TLS certificate was self-signed and has been pinned.")
156
+
fmt.Fprintln(c.App.ErrWriter, "Future communication will be secure, but joining could have been intercepted.")
157
157
}
158
158
159
-
fmt.Println()
159
+
fmt.Fprintln(c.App.ErrWriter)
160
160
if_, err:=os.Stat("/usr/bin/pcp"); err==nil {
161
-
fmt.Printf("You may now use 'pcp%s' and 'ppaste%s'. See 'pcopy -h' for usage details.\n", clipboardPrefix, clipboardPrefix)
161
+
fmt.Fprintf(c.App.ErrWriter, "You may now use 'pcp%s' and 'ppaste%s'. See 'pcopy -h' for usage details.\n", clipboardPrefix, clipboardPrefix)
162
162
} else {
163
-
fmt.Printf("You may now use 'pcopy copy%s' and 'pcopy paste%s'. See 'pcopy -h' for usage details.\n", clipboardPrefix, clipboardPrefix)
163
+
fmt.Fprintf(c.App.ErrWriter, "You may now use 'pcopy copy%s' and 'pcopy paste%s'. See 'pcopy -h' for usage details.\n", clipboardPrefix, clipboardPrefix)
0 commit comments