From 8790f632fe0943f5eb616897a3072b4d182a5319 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Sun, 15 May 2022 21:06:56 +0200 Subject: Docs: Document language-specific callback constructs --- cmd/cli/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') diff --git a/cmd/cli/main.go b/cmd/cli/main.go index f46d156..a9bff2e 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -77,6 +77,7 @@ func sendProfile(state *eduvpn.VPNState, data string) { // The callback function // If OAuth is started we open the browser with the Auth URL // If we ask for a profile, we send the profile using command line input +// Note that this has an additional argument, the vpn state which was wrapped into this callback function below func stateCallback(state *eduvpn.VPNState, oldState string, newState string, data string) { if newState == "OAuth_Started" { openBrowser(data) -- cgit v1.2.3