Commit graph

  • 9656971389 use v.getConfigType to determine config type in WriteConfig Kristin Laemmert 2017-12-20 12:05:47 -08:00
  • 2cf56962a6 Document reading a specific config file in README casept 2017-12-16 13:22:40 +01:00
  • 1a0c4a370c Feature/write config (#287) Adam Sherwood 2017-12-06 20:26:31 -08:00
  • 77aea9b385 Sync fork with upstream Adam Sherwood 2017-12-01 19:02:37 -08:00
  • c0c02c2345 Sync fork with upstream Adam Sherwood 2017-12-01 18:52:52 -08:00
  • 51bb70aff9
    travis: update go versions Davor Kapsa 2017-11-29 10:51:06 +01:00
  • 749b07afe7 Declare required dependencies with go dep #413 Xavier Coulon 2017-11-11 15:00:33 +01:00
  • 4dddf7c62e Allow exists util function to take afero.Fs so it can be used with non-deafult instances of Viper (#405) Jeff Lindsay 2017-11-09 14:57:16 -06:00
  • 7ae2e803bd Allow exists util function to take afero.Fs so it can be used with non-deafult instances of Viper Jeff Lindsay 2017-10-24 13:56:45 -05:00
  • 62674a9a65 Update LICENSE Leo Rudberg 2017-10-24 11:00:22 -04:00
  • 4557438166 Added new method for getting Defaults values from config. Kamil Wargula 2017-10-20 13:45:18 +02:00
  • 8ef37cbca7 Fix incorrect name of function in README.md Kamil Wargula 2017-10-20 12:22:28 +02:00
  • 0295131e26 Fix incorrect name of function in README.md Kamil Wargula 2017-10-20 12:22:28 +02:00
  • 056876e01f Add SetKeyDelimiter Robert Günzler 2017-10-17 14:54:28 +02:00
  • 8d5bbde953 Fix retrieval of pflag stringArray Fabian Ruff 2017-10-17 11:33:56 +02:00
  • 9e7b3a1bb5 Improve common mistake when using Cobra flagsets Tyler Butters 2017-10-08 12:47:12 -04:00
  • 9ce37a02f1 Added testing for Get when typeByDefValue is set. Leo Rudberg 2017-10-02 15:43:02 -04:00
  • d9cca5ef33 Go fmt viper.go Bjørn Erik Pedersen 2017-09-29 23:06:42 +02:00
  • 266e588e9e Add string slice support to defaultDecoderConfig Alexander Krasnukhin 2017-03-03 12:09:20 +01:00
  • 9ed185bc8f WatchConfig and Kubernetes, fixes #284 vasu1124 2017-09-18 12:27:25 +02:00
  • 9cf6bd7828 Merge branch 'master' into feature/unmarshal-with-meta Adam Sherwood 2017-08-30 11:35:51 -07:00
  • 3dfbd2fccd Merge branch 'master' into feature/write-config Adam Sherwood 2017-08-30 09:59:01 -07:00
  • c892f2738f Merge eb4fbe638f into 25b30aa063 Kolbe Kegel 2017-08-23 06:49:56 +00:00
  • bcaa23d4ab Added TestUnmarshalKeyExact() to test UnmarshalKeyExact(). Kolbe Kegel 2017-08-22 23:48:57 -07:00
  • eb4fbe638f Added TestUnmarshalKeyExact() to test UnmarshalKeyExact(). Kolbe Kegel 2017-08-22 23:48:57 -07:00
  • eaf7a394a2 Added UnmarshalKeyExact() as well as non-method UnmarshalExact(). Kolbe Kegel 2017-08-22 23:35:11 -07:00
  • 6d96b16143 Added UnmarshalKeyExact() as well as non-method UnmarshalExact(). Kolbe Kegel 2017-08-22 23:35:11 -07:00
  • 91e1c81bcc Merge f1d4c8e75a into 25b30aa063 Byron Kam 2017-08-19 00:41:44 +00:00
  • f1d4c8e75a glide yaml and lock Byron Kam 2017-08-18 17:38:05 -07:00
  • c706d52c9c ignore vendor folder Byron Kam 2017-08-18 17:35:47 -07:00
  • ba9d8fe52a Merge 21e45f5ded into 25b30aa063 Maxim Krasilnikov 2017-07-23 05:52:46 +00:00
  • 25b30aa063 Add Clairctl as a Go project that uses Viper v1.0.0 JG² 2017-07-23 07:52:07 +02:00
  • 8ac2e2e20f Run gofmt on all existing code Nick Miyake 2017-07-22 22:47:47 -07:00
  • f257d19100 Fix a few minor typos/formatting issues with comments Nick Miyake 2017-07-22 22:39:01 -07:00
  • c65884f17a Merge branch 'master' into touchUpComments Anthony Fok 2017-07-22 23:36:39 -06:00
  • 04691bc570 Improve documentation for flags Brad Peabody 2017-07-22 22:26:21 -07:00
  • 9766537120 Fix grammar/typo in comment for getEnv() Nikola Kovacs 2017-07-23 07:09:41 +02:00
  • a784b252c8 Merge 2e3a48342c into 16a9458573 Guiheux Steven 2017-07-23 04:54:31 +00:00
  • 16a9458573 Fix indentation in README.md Albert Nigmatzianov 2017-07-23 06:54:24 +02:00
  • b71fae7753 Viper Unmarshal example fix premshree 2017-07-22 09:37:03 -04:00
  • df7314a14e Make minor copy-editing changes to README.md Anthony Fok 2017-07-21 04:20:10 -06:00
  • c1de95864d Prevent redundant type assertion in Get Albert Nigmatzianov 2017-06-19 12:35:39 +02:00
  • af42719ceb Prevent redundant type assertion in Get Albert Nigmatzianov 2017-06-19 12:35:39 +02:00
  • 68a8b52d7b #358: access nested array values using get laxman.vallandas 2017-06-15 13:50:46 +00:00
  • 5b05f7e94a Merge 62433a2544 into a1ecfa6a20 Matt Spaulding 2017-06-12 03:42:54 +00:00
  • 62433a2544 Add glide file for dependency management Matt Spaulding 2017-06-11 20:40:09 -07:00
  • b9f2b580f3 Merge 21a8c83361 into a1ecfa6a20 Roman Volosatovs 2017-06-10 20:51:41 +00:00
  • a1ecfa6a20 Fix apostrophes in README Nick Miyake 2017-06-09 14:46:44 -07:00
  • 4f591986d6 Fix apostrophes in README Nick Miyake 2017-06-09 14:46:44 -07:00
  • 2e3a48342c
    fix: go fmt Steven Guiheux 2017-06-02 16:40:50 +02:00
  • cc39e99a35 Add Clairctl as User JG² 2017-06-02 13:13:02 +02:00
  • f60114508b gofmt code Nick Miyake 2017-05-21 11:43:00 -07:00
  • 0ead5cf4db Fix a few minor typos/formatting issues with comments Nick Miyake 2017-05-21 11:34:55 -07:00
  • 9fabc05b38 Fix indentation in README.md Albert Nigmatzianov 2017-05-08 13:40:01 +02:00
  • ea05004cf9 Merge b4f55a56ad into 0967fc9ace Chase Adams 2017-05-02 09:23:54 +00:00
  • 103db871f3 Fix documentation to correctly reflect implementation Herkermer Sherwood 2017-04-29 14:36:07 -07:00
  • ed787f03db Add a tests and examples for each new method Herkermer Sherwood 2017-04-29 14:30:24 -07:00
  • c254a5ba54 Add parallel functions/methods to unmarshal data and return mapstructure.Metadata Herkermer Sherwood 2017-04-29 14:28:30 -07:00
  • 02eb49d4bd Fix small lint issues Herkermer Sherwood 2017-04-29 14:27:45 -07:00
  • 1774aa4529 Merge c8bda1f37d into 0967fc9ace Anthony Fok 2017-04-27 02:45:18 +00:00
  • b4f55a56ad add method for GetStringMapBool Chase Adams 2017-04-26 03:13:56 -07:00
  • 4b195d0ed8 Fix toml return count error Herkermer Sherwood 2017-04-23 14:00:53 -07:00
  • c588a0c383 Lint remote.go Herkermer Sherwood 2017-04-23 13:43:38 -07:00
  • 760350d83c Use filename variable Herkermer Sherwood 2017-04-23 13:41:00 -07:00
  • dceace525a Write all settings including overrides Herkermer Sherwood 2016-12-19 13:29:08 -08:00
  • 0ea954cb0d Need to truncate the file before writing Herkermer Sherwood 2016-12-19 12:28:13 -08:00
  • 543b9ec4c1 Revert "Modify to only support HCL write in Go 1.7" Herkermer Sherwood 2016-12-15 20:12:53 -08:00
  • 01cef45259 Modify to only support HCL write in Go 1.7 Herkermer Sherwood 2016-12-15 13:12:09 -08:00
  • cf3aa482da Modify test for updated HCL specification Herkermer Sherwood 2016-12-15 10:42:29 -08:00
  • 6805b2ad85 Add tests for each written file type Herkermer Sherwood 2016-12-14 18:25:59 -08:00
  • 3a92f74e9b Add support for remaining configuration types Herkermer Sherwood 2016-12-14 18:24:08 -08:00
  • 315278c264 Make marshal spelling consistent throughout Herkermer Sherwood 2016-12-09 06:14:40 -08:00
  • 5b296abffb Fix spelling Herkermer Sherwood 2016-12-09 06:12:34 -08:00
  • 75bbdad0c3 Remove extra comments Herkermer Sherwood 2016-12-09 06:11:09 -08:00
  • a694a73d31 Fix incorrectly modified imports Herkermer Sherwood 2016-12-09 06:10:10 -08:00
  • 5d10b9a48a Add shared write function and safe methods Herkermer Sherwood 2016-12-08 17:07:43 -08:00
  • 5ae581fbf7 Add support for toml Herkermer Sherwood 2016-12-08 17:07:08 -08:00
  • e4c838dc30 Add WriteConfig methods Herkermer Sherwood 2016-12-08 03:00:18 -08:00
  • 4c3baa4a94 Fixed the issue of incorrect defer and error checking order. The error checking must be first otherwise it will cause panic. g3rk6 2016-01-25 22:56:20 -05:00
  • 3611c6c1c4 Added method to write into YAML file. g3rk6 2016-01-10 21:59:10 -05:00
  • 71d6b8c96f Added functionality to export configuration based on config type. The feature supports JSON and TOML. g3rk6 2015-09-20 02:24:06 -04:00
  • 985fae64ee Added method to write into TOML file. g3rk6 2015-09-08 03:25:36 -04:00
  • 3247ce7c30 Merge 393cd591dc into 0967fc9ace Vladimir Vivien 2017-04-19 14:22:43 +00:00
  • da03ede466 Merge ed3e8623b5 into 0967fc9ace Konrad Kleine 2017-04-19 12:33:20 +00:00
  • 14294d165f Merge 835f7826d0 into 0967fc9ace Matt Rickard 2017-04-19 12:03:23 +00:00
  • b4801c9944 Merge f6077e77c2 into 0967fc9ace Valentin Pichard 2017-04-19 11:56:17 +00:00
  • 21a8c83361
    respect durationSlice type (spf13/pflag#122) Roman Volosatovs 2017-04-18 15:58:37 +02:00
  • 6152d25e55
    properly handle uint types Roman Volosatovs 2017-04-18 15:54:21 +02:00
  • 945f4d6695
    properly handle various slice/array types Roman Volosatovs 2017-04-18 15:52:21 +02:00
  • afd117e0d8 Merge 70685607d8 into 0967fc9ace Alexandre Bourget 2017-04-17 21:08:54 +00:00
  • 55547298c5 Merge e197beec2f into 0967fc9ace Abhinandan 2017-04-17 16:57:43 +00:00
  • bb1e5d5512 Merge 553a030220 into 0967fc9ace Ben Gadbois 2017-04-17 15:08:20 +00:00
  • f531e91ccd Merge 9341daefb3 into 0967fc9ace Roman Volosatovs 2017-04-17 15:08:20 +00:00
  • 5e7b004740 Merge 824e0d24e0 into 0967fc9ace David Symonds 2017-04-17 12:21:10 +00:00
  • 0967fc9ace Properly handle string slice values Paweł Szczur 2017-04-17 10:08:15 +02:00
  • 9341daefb3
    viper.go: GetBoolSlice Roman Volosatovs 2017-04-13 10:49:02 +02:00
  • 0d3c5c6c30
    viper.go: GetDurationSlice Roman Volosatovs 2017-04-13 10:43:54 +02:00
  • b11cd5a631 Merge 94e8f72a4c into 5d46e70da8 Cameron Moore 2017-04-10 09:48:01 +00:00
  • 5d46e70da8 Fix UnmarshalKey handling of time.Duration Miguel Eduardo Gil Biraud 2017-04-10 11:26:50 +02:00
  • cc9aa0f5b0 Merge 1af7e37071 into 84f94806c6 Diep Pham 2017-04-10 08:56:28 +00:00