From c79b94b7191b19b8a3d401fdb43c1422fefe70d5 Mon Sep 17 00:00:00 2001 From: carm Date: Sat, 15 Feb 2025 06:06:31 +0800 Subject: [PATCH] feat: Comment resources support #104 --- .../configuration/option/CommentableOptions.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/features/commentable/src/main/java/cc/carm/lib/configuration/option/CommentableOptions.java b/features/commentable/src/main/java/cc/carm/lib/configuration/option/CommentableOptions.java index c903aa0..94610ea 100644 --- a/features/commentable/src/main/java/cc/carm/lib/configuration/option/CommentableOptions.java +++ b/features/commentable/src/main/java/cc/carm/lib/configuration/option/CommentableOptions.java @@ -8,7 +8,7 @@ public interface CommentableOptions { // * Whether to keep modified comments in configuration, // * that means we only set comments for values that are not exists in configuration. // */ -// ConfigurationOption KEEP_COMMENTS = ConfigurationOption.of(true); // TODO: Implement this feature +// ConfigurationOption KEEP_COMMENTS = ConfigurationOption.of(true); /** * Whether to comment values name that are not exists in configuration and no default value offered. @@ -21,4 +21,15 @@ public interface CommentableOptions { */ ConfigurationOption COMMENT_EMPTY_VALUE = ConfigurationOption.of(false); + +// /** +// * The resource path of the comment file. +// *

+// * Use this option to specify the path of the comment file, +// * which will be used to load comments for the configuration. +// *

+// */ +// ConfigurationOption COMMENT_RESOURCE = ConfigurationOption.of(String.class, "config-comments"); + + }