Github user nickva commented on a diff in the pull request:
https://github.com/apache/couchdb-config/pull/14#discussion_r87080213
--- 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 --
Yeah enable_feature/disable_feature sounds better. Can make it an atom as
well.
vs `add/remove`, `enable/disable` has more of an idempotent feel to it.
But ok with either way.
---
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.
---