feat: add user preferences system#73
Closed
Freewheelin wants to merge 8 commits intobinarylane:mainfrom
Closed
Conversation
added 8 commits
October 9, 2025 16:58
Add comprehensive configuration options for user preferences including: - Output format preferences (output-format, show-header) - Per-command format preferences (format-images, format-servers, etc.) - Server creation defaults (default-region, default-size, default-image, etc.) - Terminal settings (terminal-width)
- Fix preferences_show.py to display boolean flags in --flag/--no-flag format - Fix server_create.py to inject boolean preferences (backups, port-blocking) as CLI arguments instead of directly modifying request body - Ensures default-port-blocking=false actually disables port blocking on new servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.