Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit bcba5b9

Browse files
author
Mrinal Wahal
committed
Merge branch 'dev'
2 parents 487a362 + 96c27e4 commit bcba5b9

4 files changed

Lines changed: 11 additions & 56 deletions

File tree

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ module github.com/nhost/cli
33
go 1.16
44

55
require (
6-
github.com/Microsoft/go-winio v0.5.1 // indirect
7-
github.com/containerd/containerd v1.5.7 // indirect
8-
github.com/docker/docker v20.10.9+incompatible
6+
github.com/Microsoft/go-winio v0.5.1 // indirect
7+
github.com/containerd/containerd v1.5.7 // indirect
8+
github.com/docker/docker v20.10.10+incompatible
99
github.com/docker/go-connections v0.4.0
10-
github.com/evanw/esbuild v0.13.8
10+
github.com/evanw/esbuild v0.13.9
1111
github.com/fsnotify/fsnotify v1.5.1
12-
github.com/gorilla/mux v1.8.0 // indirect
12+
github.com/gorilla/mux v1.8.0 // indirect
1313
github.com/hashicorp/go-getter v1.5.9
1414
github.com/koding/websocketproxy v0.0.0-20181220232114-7ed82d81a28c
1515
github.com/manifoldco/promptui v0.8.0
1616
github.com/mattn/go-colorable v0.1.11
17-
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect
18-
github.com/morikuni/aec v1.0.0 // indirect
17+
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect
18+
github.com/morikuni/aec v1.0.0 // indirect
1919
github.com/sirupsen/logrus v1.8.1
2020
github.com/spf13/cobra v1.2.1
2121
github.com/spf13/viper v1.9.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ github.com/docker/distribution v0.0.0-20190905152932-14b96e55d84c/go.mod h1:0+TT
263263
github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
264264
github.com/docker/distribution v2.7.1+incompatible h1:a5mlkVzth6W5A4fOsS3D2EO5BUmsJpcB+cRlLU7cSug=
265265
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
266-
github.com/docker/docker v20.10.9+incompatible h1:JlsVnETOjM2RLQa0Cc1XCIspUdXW3Zenq9P54uXBm6k=
267-
github.com/docker/docker v20.10.9+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
266+
github.com/docker/docker v20.10.10+incompatible h1:GKkP0T7U4ks6X3lmmHKC2QDprnpRJor2Z5a8m62R9ZM=
267+
github.com/docker/docker v20.10.10+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
268268
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
269269
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
270270
github.com/docker/go-events v0.0.0-20170721190031-9461782956ad/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA=
@@ -290,8 +290,8 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.m
290290
github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
291291
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
292292
github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
293-
github.com/evanw/esbuild v0.13.8 h1:RPtlw0G2P2BRJ57NZqF4gM6SB8/QpU/maEE97poypXc=
294-
github.com/evanw/esbuild v0.13.8/go.mod h1:GG+zjdi59yh3ehDn4ZWfPcATxjPDUH53iU4ZJbp7dkY=
293+
github.com/evanw/esbuild v0.13.9 h1:cLgRmH72e+/YQegWMmB74qjXmaR5mbNdJYS9AwBCo8g=
294+
github.com/evanw/esbuild v0.13.9/go.mod h1:GG+zjdi59yh3ehDn4ZWfPcATxjPDUH53iU4ZJbp7dkY=
295295
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
296296
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
297297
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=

nhost/nhost.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"net/http/httputil"
1212
"net/url"
1313
"os"
14-
"os/exec"
1514
"path/filepath"
1615
"runtime"
1716
"strconv"
@@ -1151,30 +1150,6 @@ func generateProviders() map[string]interface{} {
11511150
}
11521151
}
11531152

1154-
func (s *Session) Spawn() {
1155-
1156-
cmd := exec.Command(s.Command)
1157-
1158-
if s.Log {
1159-
cmd.Stdout = os.Stdout
1160-
cmd.Stderr = os.Stderr
1161-
}
1162-
1163-
if s.Dir != "" {
1164-
if filepath.IsAbs(s.Dir) {
1165-
cmd.Dir = s.Dir
1166-
} else {
1167-
cmd.Dir = filepath.Join(util.WORKING_DIR, s.Dir)
1168-
}
1169-
}
1170-
1171-
go cmd.Run()
1172-
1173-
if s.Browser != "" {
1174-
openbrowser(s.Browser)
1175-
}
1176-
}
1177-
11781153
// fetches saved credentials from auth file
11791154
func LoadCredentials() (Credentials, error) {
11801155

nhost/utils.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import (
55
"io/ioutil"
66
"math/rand"
77
"net"
8-
"os/exec"
98
"path/filepath"
10-
"runtime"
119
"strconv"
1210
"strings"
1311
"syscall"
@@ -66,24 +64,6 @@ func GetContainerName(name string) string {
6664
return strings.Join([]string{PREFIX, name}, "_")
6765
}
6866

69-
func openbrowser(url string) error {
70-
71-
var err error
72-
73-
switch runtime.GOOS {
74-
case "linux":
75-
err = exec.Command("xdg-open", url).Start()
76-
case "windows":
77-
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
78-
case "darwin":
79-
err = exec.Command("open", url).Start()
80-
default:
81-
err = fmt.Errorf("unsupported platform")
82-
}
83-
84-
return err
85-
}
86-
8767
func GetCurrentBranch() string {
8868

8969
log.Debug("Fetching local git branch")

0 commit comments

Comments
 (0)