summaryrefslogtreecommitdiff
path: root/cmd/cli/main.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-15 21:06:56 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-15 21:06:56 +0200
commit8790f632fe0943f5eb616897a3072b4d182a5319 (patch)
treec5e07d5a0da5b66a95cb5f03dcc6b78d8c8bc91c /cmd/cli/main.go
parent8d5d611783842d3d67604eca0fa17d24120333c0 (diff)
Docs: Document language-specific callback constructs
Diffstat (limited to 'cmd/cli/main.go')
-rw-r--r--cmd/cli/main.go1
1 files changed, 1 insertions, 0 deletions
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)