Skip to content

Add droplet size descriptions and filtering across interactive commands - #84

Open
fcasal wants to merge 2 commits into
mainfrom
add_hw_info
Open

Add droplet size descriptions and filtering across interactive commands#84
fcasal wants to merge 2 commits into
mainfrom
add_hw_info

Conversation

@fcasal

@fcasal fcasal commented Aug 19, 2026

Copy link
Copy Markdown
  • Add a Type column from DigitalOcean's own description field, so tier names come from the API and are described vs only a slug name such as so-2vcpu-16gb-intel
  • Implemented a filter: cpu>=8 mem>=32 price<=300.
  • Prompts get readline line editing and up-arrow history.

The following image shows the result of running ? mem >= 16 price <= 200, together with the accompanying machine descriptions
image

- Add a Type column from DigitalOcean's own `description` field, so tier names come from the API
- Prompts accept a filter: `cpu>=8 mem>=32 price<=300`.
- Prompts get readline line editing and up-arrow history.
@fcasal
fcasal requested a review from ret2libc as a code owner August 19, 2026 14:03

@ret2libc ret2libc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use one consistent default unit for memory filters—GB would work—and document it in the prompt help. Currently, mem>=1023 means 1023 GB, while mem>=1024 means 1 GB. Explicit mb/gb/tb suffixes can remain supported.

Filtering should be available wherever users select a droplet size, including interactive creation, initialization, and both resize paths. The shared helper appears to cover these already; please add command-level tests for interactive creation and resizing to verify that integration, and broaden the PR title to reflect the scope.

@fcasal fcasal changed the title Add DO image description and filtering to resize command Add droplet size descriptions and filtering across interactive commands Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants