Carleslc / Simple-YAML

This Java API provides an easy-to-use way to store data and provide configurations using the YAML format.
https://carleslc.me/Simple-YAML
GNU General Public License v3.0
130 stars 38 forks source link

Feature idea #81

Open FrahHS opened 3 weeks ago

FrahHS commented 3 weeks ago

would be grate to have a method to enable/disable an entry, my idea is to add something like that:

ymlFile.path("enabled")
            .addDefault(true)
            .comment("Automatically check for updates.")
            .setEnabled(true);

result:

# Automatically check for updates.
update-check: true
ymlFile.path("enabled")
            .addDefault(true)
            .comment("Automatically check for updates.")
            .setEnabled(false);

result:

# Automatically check for updates.
#update-check: true