Files
LeonOS/data/computercraft/lua/rom/help/config.hlp
Leonmmcoset 788ed1f685 docs(帮助文档): 更新并新增帮助文档内容
- 修复create_package.hlp中的格式问题
- 在pkg_download_en.hlp中添加空行提高可读性
- 新增network.hlp网络工具文档
- 新增config.hlp系统配置管理文档
2025-09-03 17:56:26 +08:00

84 lines
2.1 KiB
Plaintext

=== System Configuration Manager ===
The `config` command provides a system configuration manager for LeonOS, allowing you to view, modify, and manage system settings.
== Basic Usage ==
>>color yellow
config <command> [options] [setting] [value]
>>color white
== Available Commands ==
- **list**: List all available settings
- **get <setting>**: Get the value of a specific setting
- **set <setting> <value>**: Set the value of a specific setting
- **default <setting>**: Reset a setting to its default value
- **save**: Save current settings to file
- **find <pattern>**: Find settings by name or description
- **help**: Show this help message
== Command Options ==
- **--details**, **-d**: Show detailed information when listing settings
- **--case-insensitive**, **-i**: Search case-insensitively
== Usage Examples ==
1. List all settings:
>>color yellow
config list
>>color white
2. List all settings with details:
>>color yellow
config list --details
>>color white
3. Get the value of a specific setting:
>>color yellow
config get list.show_hidden
>>color white
4. Set the value of a specific setting:
>>color yellow
config set list.show_hidden true
>>color white
5. Reset a setting to its default value:
>>color yellow
config default list.show_hidden
>>color white
6. Find settings containing a pattern:
>>color yellow
config find 'hidden'
>>color white
7. Find settings with case-insensitive search:
>>color yellow
config find 'color' -i
>>color white
8. Save current settings:
>>color yellow
config save
>>color white
9. Show help information:
>>color yellow
config help
>>color white
== Notes ==
- Changes to settings are not persisted until you run `config save`
- Some settings may require a system restart to take effect
- Use `config list --details` to see the type and description of each setting
- The `find` command searches both setting names and descriptions
== Troubleshooting ==
- If you get an error that a setting is not found, check that you're using the correct setting name
- If changes don't seem to take effect, make sure you've run `config save` and restarted any affected programs
- For case-sensitive searches, omit the `-i` option