Commit graph

  • 75fd49c5e9
    Tidy dependencies Mark Sagi-Kazar 2019-12-06 10:56:50 +01:00
  • 351bfe9719 loop through ini sections Matti R 2019-12-03 10:46:17 -05:00
  • 3a19b6e0d9 Review updates to utilize afero for file checks and updated checks on unit tests javaducky 2019-12-03 19:14:08 -06:00
  • a708479794 Updating SafeWriteConfig and SafeWriteConfigAs to match documented behavior. javaducky 2019-09-13 09:29:19 -05:00
  • aae889b066 Review updates to utilize afero for file checks and updated checks on unit tests javaducky 2019-12-03 19:14:08 -06:00
  • bb3bcc8a51
    loop through ini sections Matti R 2019-12-03 10:46:17 -05:00
  • 9e353e395e find() looks for flag's default values only when requested. Benoit Masson 2017-04-11 22:15:44 +02:00
  • 4e1ebbdaba Added tests to TestIsSet() Benoit Masson 2017-04-11 17:49:10 +02:00
  • f9d0975955 find() looks for flag's default values only when requested. Benoit Masson 2017-04-11 22:15:44 +02:00
  • eafbc11f43 Added tests to TestIsSet() Benoit Masson 2017-04-11 17:49:10 +02:00
  • ee480d6b4c
    Merge 829e890a30 into 01d7d76eb0 Joe Frank 2019-11-22 15:10:08 -05:00
  • 0c356e526c
    Merge aa2bb3a537 into 01d7d76eb0 koooge 2019-11-16 17:03:32 -03:00
  • e46f916bce
    Merge cf9182539d into 01d7d76eb0 RajR 2019-11-13 14:17:44 +08:00
  • c65226d006
    Merge d18964fe22 into 01d7d76eb0 Raven 2019-11-09 21:16:02 -06:00
  • 8f3a9443bb
    Merge c3ab84f775 into 01d7d76eb0 Daniel Einspanjer 2019-11-09 21:15:00 -06:00
  • bce0fd1101
    Merge e5459cc690 into 01d7d76eb0 Harley Laue 2019-11-08 21:09:02 +03:00
  • 01d7d76eb0 Add Mercure in the list of projects using Viper Kévin Dunglas 2019-11-08 01:09:09 +01:00
  • 9138a67def
    Add Mercure in the list of projects using Viper Kévin Dunglas 2019-11-08 01:09:09 +01:00
  • d1c60d9e69 Support config files with no extensions (#722) Pedro Silva 2019-11-06 13:54:13 +00:00
  • 1107623164
    First look for config file with extension and only after fallback to no extension Pedro Silva 2019-11-06 10:50:06 +00:00
  • 895aadc1d8
    Merge branch 'master' into support-config-file-with-no-extension Pedro Silva 2019-11-05 13:33:29 +00:00
  • 059e69cf18
    Update README informing config files without extension are supported Pedro Silva 2019-11-05 13:29:29 +00:00
  • 72b022eb35 Added capacity to slice creation v1.5.0 Vivek V 2019-10-09 19:06:40 +05:30
  • 69c351ace2 add sync.RWMutex for goroutine safe root 2019-10-31 14:45:35 +08:00
  • cb23e03ea4 Use nil value variable declaration Duncan Mac-Vicar P 2019-10-17 15:06:26 +02:00
  • 19b0e4054c If the extension is empty, do not append the dot when building the path Duncan Mac-Vicar P 2019-02-05 14:04:58 +01:00
  • 40e41dd224 Updates YAML to v2.2.4 Navid Shaikh 2019-10-16 13:09:46 +05:30
  • f5863a9eeb Updates YAML to v2.2.4 Navid Shaikh 2019-10-16 13:09:46 +05:30
  • 6d59e31dc5 Added dep search to InConfig method Sergey Novichkov 2018-12-19 08:28:16 +03:00
  • cf9182539d
    re-implemented WatchRemoteConfigOnChannel() RajR 2019-10-09 22:52:12 -04:00
  • e0755a91fc
    re-implemented WatchRemoteConfigOnChannel() RajR 2019-10-09 22:29:19 -04:00
  • 7be4aed41a Added capacity to slice creation Vivek V 2019-10-09 19:06:40 +05:30
  • 5dfc4e0609 Adding support for the .tf extension (Terraform) Mitch Robins 2019-10-04 08:11:16 -05:00
  • 71509d2887 Revert the effective changes of #673 Mark Sagi-Kazar 2019-09-27 17:18:11 +02:00
  • 398adc5a7d Add breaking test that requires reverting #673 Mark Sagi-Kazar 2019-09-27 17:09:18 +02:00
  • 371f39c3ab Add Go 1.13 to travis Mark Sagi-Kazar 2019-09-27 21:51:10 +02:00
  • c171232d3a Add go version to the mod file Mark Sagi-Kazar 2019-09-27 21:50:09 +02:00
  • 1053a4905c
    Add Go 1.13 to travis Mark Sagi-Kazar 2019-09-27 21:51:10 +02:00
  • e43d408b2d
    Add go version to the mod file Mark Sagi-Kazar 2019-09-27 21:50:09 +02:00
  • 583f79b3ea remote: fix two dropped errors Lars Lehtonen 2019-09-18 08:47:54 -07:00
  • d54a8fc315
    remote: fix two dropped errors Lars Lehtonen 2019-09-18 08:47:54 -07:00
  • 141d214de1
    Revert the effective changes of #673 Mark Sagi-Kazar 2019-09-27 17:18:11 +02:00
  • e5833fadda
    Add breaking test that requires reverting #673 Mark Sagi-Kazar 2019-09-27 17:09:18 +02:00
  • 78f7390c39 Added function to check for partial keys existing: Includes checking PFlags and Envs, unlike IsSet() (#764) inkychris 2019-09-18 09:07:48 +01:00
  • 06c0f4f03a Updating SafeWriteConfig and SafeWriteConfigAs to match documented behavior. javaducky 2019-09-13 09:29:19 -05:00
  • 1cf67c10ab Read onlu view with sub config Rotm Erlich 2019-09-02 12:06:07 +03:00
  • 99520c81d8 Implemented ability to unmarshal keys containing dots to structs. Changed formatting of test objects for better git diffing and readibility. Fixed failing tests on Windows. inkychris 2019-03-16 11:10:32 +00:00
  • e68188b9ad Implemented ability to unmarshal keys containing dots to structs. Changed formatting of test objects for better git diffing and readibility. Fixed failing tests on Windows. inkychris 2019-03-16 11:10:32 +00:00
  • efcc8aa25b Reverting to mapstructure v1.0.0 due to issue with validator.v9 on empty slices gbunt 2019-08-31 14:51:53 +00:00
  • b6f8cd85a4 Update module path in go.mod gbunt 2019-08-30 17:45:09 +00:00
  • e3fecf5462
    Merge pull request #1 from gbunt/SetKeysCaseSensitive gbunt 2019-08-30 17:53:36 +02:00
  • dbe6d247ea README fix to correct function name to SetKeysCaseSensitive() gbunt 2019-08-30 15:44:37 +00:00
  • 66b6dc1a03 Add viper.SetKeysCaseSensitive() to disable automatic key lowercasing. Kailash Nadh 2019-01-25 12:23:27 +05:30
  • 99c00780f6 Support search .env or other dotfiles in path jynychen 2019-08-29 23:55:06 +08:00
  • c761641820 fmt jynychen 2019-08-30 00:05:31 +08:00
  • 435ffae7be Support search .env or other dotfiles in path jynychen 2019-08-29 23:55:06 +08:00
  • bd1db6bb8c Run go mod tidy Mark Sagi-Kazar 2019-08-29 15:29:27 +02:00
  • adbbd1c4e6
    Run go mod tidy Mark Sagi-Kazar 2019-08-29 15:29:27 +02:00
  • b90ab1fd8d modules: add github.com/subosito/gotenv to go.mod and go.sum shawn 2019-08-22 13:53:32 +09:00
  • dc5aac335f
    Merge a12e6c8300 into e697d557b7 Manuel de la Peña 2019-08-18 18:01:05 +00:00
  • e697d557b7 Fix small typo TwiN 2019-08-16 17:15:10 -04:00
  • 082cade898
    Fix small typo TwiN 2019-08-16 17:15:10 -04:00
  • a12e6c8300 (#373) Remove key insensitivity Manuel de la Peña 2019-08-09 17:08:41 +02:00
  • 5e97c1a825 (#373) Use an upper case key in YAML to demonstrate that it's converted to lower case Manuel de la Peña 2019-08-02 17:45:37 +02:00
  • 4c6f9dbdd5 (#373) Update dependencies after go test Manuel de la Peña 2019-08-02 17:44:56 +02:00
  • 33bf76add3 Simplify code Christian Muehlhaeuser 2019-07-20 00:07:23 +02:00
  • e05277ba6b
    Simplify code Christian Muehlhaeuser 2019-07-20 00:07:23 +02:00
  • 1b33e8258e Add error handling Christian Muehlhaeuser 2019-07-20 00:10:42 +02:00
  • d65fa7608b Fixed typo Christian Muehlhaeuser 2019-07-20 00:03:44 +02:00
  • cdccc8152c Fix SafeWriteConfig Rodrigo Chiossi 2018-01-30 10:15:47 +00:00
  • a3d17c7a20 Initialize the configuration file during writing if not exist Ryan SIU 2019-07-26 14:01:37 +08:00
  • c97ed2e905
    Merge 15be5e8700 into e02bc9eca5 Daniel Einspanjer 2019-07-25 14:17:37 +00:00
  • d67140c58b
    Add error handling Christian Muehlhaeuser 2019-07-20 00:10:42 +02:00
  • 7d3c3ff0c3
    Fixed typo Christian Muehlhaeuser 2019-07-20 00:03:44 +02:00
  • 3c36e1d361
    Adds HasChanged and HasChangedSinceInit aeneasr 2019-07-15 13:08:37 +02:00
  • 5bace2abf4
    Resolve race conditions, panics, and other errors (#1) hackerman 2019-07-15 12:52:53 +02:00
  • e02bc9eca5 Fixed missing f.Close() in writeConfig() bpizzi 2018-07-27 10:10:14 +02:00
  • e325492b82 Add missing call to initWF.Done() Nicolas Martin 2019-01-03 15:31:09 +01:00
  • e6d1c6bc9a Improve godoc Márk Sági-Kazár 2019-07-13 12:04:26 +02:00
  • 275a36d0a0 Fix function comments based on best practices from Effective Go CodeLingo Bot 2019-02-13 00:48:45 +00:00
  • 7fdad0204e Fix typo Márk Sági-Kazár 2019-07-13 11:57:28 +02:00
  • b8221cf4ee Add GetIntSlice helper method AGirard 2019-06-19 16:05:58 +02:00
  • 2e9b1d1020
    Improve godoc Márk Sági-Kazár 2019-07-13 12:04:26 +02:00
  • e968ab31c9
    Fix typo Márk Sági-Kazár 2019-07-13 11:57:28 +02:00
  • 72cbe340cb Improve travis Márk Sági-Kazár 2019-07-13 11:42:53 +02:00
  • f554032f49
    Improve travis Márk Sági-Kazár 2019-07-13 11:42:53 +02:00
  • 5ae3a072d1 Add documentation for no config file found lucperkins 2019-06-21 18:43:31 -07:00
  • d34be8d9ee Improve BindEnv details Márk Sági-Kazár 2019-07-13 11:32:26 +02:00
  • 96441b4b74 BindEnv details specified. Now less confusion. Bruce Wang 2019-06-20 15:08:30 +08:00
  • 365e9b7e94
    Improve BindEnv details Márk Sági-Kazár 2019-07-13 11:32:26 +02:00
  • 2b4f7d3cde Add dotenv documentation in README.md victor23d 2019-06-22 16:02:30 +00:00
  • cbf62daee9 Add dotenv documentation in README.md victor23d 2019-06-22 16:02:30 +00:00
  • dbc0021322 Add documentation for no config file found lucperkins 2019-06-21 18:43:31 -07:00
  • 1655def7e9 Support config files with no extensions Pedro Silva 2019-06-20 21:32:08 +01:00
  • 0a8ef1b974 BindEnv details specified. Now less confusion. Bruce Wang 2019-06-20 15:08:30 +08:00
  • 2ee9598b00
    Add GetIntSlice helper method AGirard 2019-06-19 16:05:58 +02:00
  • b4264bedbd
    Merge 9656971389 into 3349bd9cc2 Kristin Laemmert 2019-06-15 15:58:36 +00:00
  • 3349bd9cc2 Improve Unmarshal docs (#713) Márk Sági-Kazár 2019-06-14 17:17:12 +02:00
  • 8c1a5f6c1c
    Improve Unmarshal docs Márk Sági-Kazár 2019-06-13 10:54:21 +02:00
  • 3b4aca7571 Fix example code okazu-dm 2018-08-12 13:35:30 +09:00