summaryrefslogtreecommitdiff
path: root/cmd/cli/main.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-08-19 16:55:06 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-08-19 16:55:06 +0200
commite477d140363ebf34300894cbb92ed7a676ea0d11 (patch)
tree3298b8ecc021b9d5b3bcac233014a332a3053ac9 /cmd/cli/main.go
parent279333e060dfa794054c38caea53fb709d526859 (diff)
CLI + State Test: Rename VPNStateID to StateID
Diffstat (limited to 'cmd/cli/main.go')
-rw-r--r--cmd/cli/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/cli/main.go b/cmd/cli/main.go
index c062303..d39cc4d 100644
--- a/cmd/cli/main.go
+++ b/cmd/cli/main.go
@@ -91,7 +91,7 @@ func sendProfile(state *eduvpn.VPNState, data interface{}) {
// 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 eduvpn.VPNStateID, newState eduvpn.VPNStateID, data interface{}) {
+func stateCallback(state *eduvpn.VPNState, oldState eduvpn.StateID, newState eduvpn.StateID, data interface{}) {
// TODO: Remove internal usage of fsm
if newState == fsm.OAUTH_STARTED {
openBrowser(data)
@@ -168,7 +168,7 @@ func storeSecureInternetConfig(state *eduvpn.VPNState, url string, directory str
func getSecureInternetAll(homeURL string) {
state := &eduvpn.VPNState{}
- state.Register("org.eduvpn.app.linux", "configs", func(old eduvpn.VPNStateID, new eduvpn.VPNStateID, data interface{}) {
+ state.Register("org.eduvpn.app.linux", "configs", func(old eduvpn.StateID, new eduvpn.StateID, data interface{}) {
stateCallback(state, old, new, data)
}, true)
@@ -209,7 +209,7 @@ func getSecureInternetAll(homeURL string) {
func printConfig(url string, serverType ServerTypes) {
state := &eduvpn.VPNState{}
- state.Register("org.eduvpn.app.linux", "configs", func(old eduvpn.VPNStateID, new eduvpn.VPNStateID, data interface{}) {
+ state.Register("org.eduvpn.app.linux", "configs", func(old eduvpn.StateID, new eduvpn.StateID, data interface{}) {
stateCallback(state, old, new, data)
}, true)