mirror of
https://github.com/CarmJos/EasyConfiguration.git
synced 2026-06-04 18:48:20 +08:00
feat: Comment resources support #104
This commit is contained in:
+12
-1
@@ -8,7 +8,7 @@ public interface CommentableOptions {
|
|||||||
// * Whether to keep modified comments in configuration,
|
// * Whether to keep modified comments in configuration,
|
||||||
// * that means we only set comments for values that are not exists in configuration.
|
// * that means we only set comments for values that are not exists in configuration.
|
||||||
// */
|
// */
|
||||||
// ConfigurationOption<Boolean> KEEP_COMMENTS = ConfigurationOption.of(true); // TODO: Implement this feature
|
// ConfigurationOption<Boolean> KEEP_COMMENTS = ConfigurationOption.of(true);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether to comment values name that are not exists in configuration and no default value offered.
|
* Whether to comment values name that are not exists in configuration and no default value offered.
|
||||||
@@ -21,4 +21,15 @@ public interface CommentableOptions {
|
|||||||
*/
|
*/
|
||||||
ConfigurationOption<Boolean> COMMENT_EMPTY_VALUE = ConfigurationOption.of(false);
|
ConfigurationOption<Boolean> COMMENT_EMPTY_VALUE = ConfigurationOption.of(false);
|
||||||
|
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * The resource path of the comment file.
|
||||||
|
// * <p>
|
||||||
|
// * Use this option to specify the path of the comment file,
|
||||||
|
// * which will be used to load comments for the configuration.
|
||||||
|
// * </p>
|
||||||
|
// */
|
||||||
|
// ConfigurationOption<String> COMMENT_RESOURCE = ConfigurationOption.of(String.class, "config-comments");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user