Github user rnewson commented on a diff in the pull request:
https://github.com/apache/couchdb-config/pull/14#discussion_r87076913
--- Diff: src/config.erl ---
@@ -183,6 +187,26 @@ delete(Section, Key, Persist, Reason) when
is_list(Section), is_list(Key) ->
gen_server:call(?MODULE, {delete, Section, Key, Persist, Reason}).
+features() ->
+ lists:usort([list_to_binary(Key) || {Key, "true"} <-
?MODULE:get(?FEATURES)]).
+
+
+feature_enable(Feature) when is_atom(Feature) ->
--- End diff --
`enable_feature` and `disable_feature` reads better, what do you think?
Also, can we insist on atom rather than handle atom and binary and list?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---