8000 Merge pull request #269 from tucksaun/refacto/viper · symfony-cli/symfony-cli@155c3aa · GitHub
[go: up one dir, main page]

Skip to content

Commit 155c3aa

Browse files
authored
Merge pull request #269 from tucksaun/refacto/viper
Remove github.com/spf13/viper from the vendors
2 parents de4c8ae + 8f3e1c7 commit 155c3aa

File tree

3 files changed

+0
-444
lines changed

3 files changed

+0
-444
lines changed

commands/root.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
"sync"
2727

2828
"github.com/pkg/errors"
29-
"github.com/spf13/viper"
3029
"github.com/symfony-cli/console"
3130
"github.com/symfony-cli/symfony-cli/reexec"
3231
"github.com/symfony-cli/symfony-cli/updater"
@@ -99,7 +98,6 @@ func CheckGitIsAvailable(c *console.Context) error {
9998

10099
func init() {
101100
initCLI()
102-
initConfig()
103101
}
104102

105103
func GetPSH() (*platformshCLI, error) {
@@ -184,21 +182,6 @@ Environment variables to use Platform.sh relationships or Docker services are au
184182
`
185183
}
186184

187-
// initConfig reads in config file and ENV variables if set.
188-
func initConfig() {
189-
if os.Getenv("SF_CONFIG") != "" {
190-
viper.SetConfigFile(os.Getenv("SF_CONFIG"))
191-
}
192-
viper.SetConfigName("symfony")
193-
viper.AddConfigPath("$HOME/.symfony")
194-
viper.AddConfigPath(".")
195-
viper.AutomaticEnv()
196-
viper.SetEnvPrefix("SYMFONY")
197-
if err := viper.ReadInConfig(); err == nil {
198-
terminal.Logger.Info().Msg("Using config file: " + viper.ConfigFileUsed())
199-
}
200-
}
201-
202185
func getProjectDir(dir string) (string, error) {
203186

204187
var err error

go.mod

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ require (
1717
github.com/rs/zerolog v1.28.0
1818
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
1919
github.com/soheilhy/cmux v0.1.5
20-
github.com/spf13/viper v1.14.0
2120
github.com/stoicperlman/fls v0.0.0-20171222144224-f073b7a01081
2221
github.com/symfony-cli/cert v1.0.1
2322
github.com/symfony-cli/console v1.0.2
@@ -40,11 +39,9 @@ require (
4039
github.com/fsnotify/fsnotify v1.6.0 // indirect
4140
github.com/gogo/protobuf v1.3.2 // indirect
4241
github.com/google/btree v1.1.2 // indirect
43-
github.com/hashicorp/hcl v1.0.0 // indirect
4442
github.com/imdario/mergo v0.3.13 // indirect
4543
github.com/kr/pretty v0.3.1 // indirect
4644
github.com/kr/text v0.2.0 // indirect
47-
github.com/magiconair/properties v1.8.6 // indirect
4845
github.com/mattn/go-colorable v0.1.13 // indirect
4946
github.com/mattn/go-isatty v0.0.16 // indirect
5047
github.com/mattn/go-runewidth v0.0.14 // indirect
@@ -54,17 +51,10 @@ require (
5451
github.com/morikuni/aec v1.0.0 // indirect
5552
github.com/opencontainers/go-digest v1.0.0 // indirect
5653
github.com/opencontainers/image-spec v1.1.0-rc2 // indirect
57-
github.com/pelletier/go-toml v1.9.5 // indirect
58-
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
5954
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
6055
github.com/rivo/uniseg v0.4.2 // indirect
6156
github.com/rogpeppe/go-internal v1.9.0 // indirect
6257
github.com/sirupsen/logrus v1.9.0 // indirect
63-
github.com/spf13/afero v1.9.2 // indirect
64-
github.com/spf13/cast v1.5.0 // indirect
65-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
66-
github.com/spf13/pflag v1.0.5 // indirect
67-
github.com/subosito/gotenv v1.4.1 // indirect
6858
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
6959
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
7060
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
@@ -77,7 +67,6 @@ require (
7767
golang.org/x/time v0.1.0 // indirect
7868
golang.org/x/tools v0.2.0 // indirect
7969
gopkg.in/fsnotify.v1 v1.4.7 // indirect
80-
gopkg.in/ini.v1 v1.67.0 // indirect
8170
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
8271
gopkg.in/yaml.v3 v3.0.1 // indirect
8372
howett.net/plist v1.0.0 // indirect

0 commit comments

Comments
 (0)
0