diff --git a/README.md b/README.md index 97ba3b9..a3d783f 100644 --- a/README.md +++ b/README.md @@ -103,13 +103,6 @@ or, override your api url and token individually on the fly with flags `--token` $ gogs --url=http://some.other.company --token=qo23ransdlfknaw3oijr2323rasldf repo search waldo ``` -## Config. -There's a file called `.go-gogs-cli.yaml` which handles configuring your __Gogs url__ and __token__, like such -```yaml -token: 0e6709o05da4753dddf5f592374fdc263f02n801 -api_url: http://my.goggers.me -``` -Fill that in for your own self.

You may have noticed that we're pretty heavy on the `gogs repo` and pretty light on the `gogs somethingelse` side of things. The [Gogs Client API](https://github.com/gogits/go-gogs-client) makes a bunch of endpoints and methods accessible for Users, Organizations, Issues, Admins, and so forth (although it's still very much a work in progress). Myself, I mostly just want to be able to create, search, and destroy like a fiend. If you would :heart: something and are unable to help yourself, let me know by opening an issue. diff --git a/cmd/root.go b/cmd/root.go index e338875..7e9b92d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -99,7 +99,6 @@ func initConfig() { viper.SetConfigName(".go-gogs-cli") // name of config file (without extension) viper.AddConfigPath("$HOME") // adding home directory as first search path viper.AutomaticEnv() // read in environment variables that match - // viper.SetDefault("api_url", "try.gogs.io/api/v1") // If a config file is found, read it in. if err := viper.ReadInConfig(); err == nil {