feat: add user preferences system #73
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add comprehensive user preferences system to streamline CLI workflows and customise output formatting.
Features
Server Creation Defaults
--region,--size,--image, and other server creation parametersbl server createuses configured defaults while allowing command-line overridesOutput Formatting Preferences
format-servers,format-images, etc.--formatoverridesTerminal Settings
terminal-widthpreference (numeric value or null for auto-detection)Management Commands
bl preferences set <key> <value>- set or update a preferencebl preferences get [key]- view current preferencesbl preferences show [group]- display preferences with contextual help and available optionsbl preferences set <key> null- reset to built-in defaultsEnhanced User Experience
preferences show server createdisplays all server creation defaults with command previewCommands Added
preferences getpreferences setpreferences showserver create(wrapper that applies preferences to generated command)Documentation
PREFERENCES.mdREADME.mdwith preferences section and examplesUse Case
Before:
After:
This feature reduces repetitive typing for users who frequently create servers with similar configurations or prefer customised list output formats.