Commit graph

26 commits

Author SHA1 Message Date
Mike Bierlee e62fe7c9ae Rename dictionary to config in unittests for consistency 2022-09-25 19:23:27 +03:00
Mike Bierlee ff6afb7e9c Trim segments in paths 2022-09-25 19:20:52 +03:00
Mike Bierlee 3e272f9e5a Add imperative convenience functions for loading JSON 2022-09-25 19:12:35 +03:00
Mike Bierlee 94ae45a408 Add JSON config example 2022-09-25 19:03:26 +03:00
Mike Bierlee 3c5f88b9fd Add ability to fetch a subconfig 2022-09-24 20:05:15 +03:00
Mike Bierlee 2a5ae23576 Simplify creation of dictionaries in tests 2022-09-24 19:49:38 +03:00
Mike Bierlee cb8e737e6c Add get with type conversion for convenience 2022-09-24 19:42:29 +03:00
Mike Bierlee 32598ca434 Add public inline documentation 2022-09-24 19:31:21 +03:00
Mike Bierlee 20a7c0471b Add file loading 2022-09-24 18:51:32 +03:00
Mike Bierlee a1a99d1dee Add json string parsing 2022-09-24 18:43:56 +03:00
Mike Bierlee fcbc372923 Add JsonConfigFactory 2022-09-24 18:05:33 +03:00
Mike Bierlee 1272ef1bc4 Allow empty path
just attempt to fetch the root
2022-09-24 17:09:20 +03:00
Mike Bierlee bcd9bf22e3 Remove unneccesary check
The rest of the code already supports this case
2022-09-24 17:07:08 +03:00
Mike Bierlee 373f2fc1c3 Define ConfigLoader interface
And privatize internal classes
2022-09-24 17:05:47 +03:00
Mike Bierlee e293baf526 Rename project to detach it from Poodinis 2022-09-24 17:04:57 +03:00
Mike Bierlee af6dd95d57 Support conventional array indexing notation
i.e. bla.bleh[4]
2022-09-24 03:51:02 +03:00
Mike Bierlee 7d7dd9a328 Get rid of empty segments in config path 2022-09-24 03:32:30 +03:00
Mike Bierlee 70301442a2 Add additional tests 2022-09-24 03:27:41 +03:00
Mike Bierlee 16b430a135 Slight refactor 2022-09-24 03:18:49 +03:00
Mike Bierlee a4b0e7982e Add support for getting config from objects 2022-09-24 02:55:44 +03:00
Mike Bierlee e3673755de Make it possible to get a value from a root object 2022-09-24 02:07:31 +03:00
Mike Bierlee cde58e1224 Rename node objects 2022-09-24 01:15:16 +03:00
Mike Bierlee c6e85e8eba Add reading values from config root 2022-09-24 01:13:08 +03:00
Mike Bierlee 5ab78d08d6 Add basic config dictionary 2022-09-23 23:40:36 +03:00
Mike Bierlee 525e82410f Add project skeleton 2022-09-23 23:34:22 +03:00
Mike Bierlee 772658330b initial commit 2022-09-23 22:55:25 +03:00