spinframework / spinframework/spin
Change default behavior of `spin plugins list`
- Dominant language
- Rust
- Stars
- 6.5k
- Forks
- 310
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 24
Description
The list of plugin version being shown when running spin plugins list is really long. I'd like to propose changing it to only show latest version (and installed version of a given plugin, if it's not the latest).
Current
trigger-command 0.1.0
trigger-command 0.2.0
trigger-command 0.2.1
trigger-command 0.2.2
trigger-command 0.3.0
trigger-command 0.3.1
trigger-command 0.3.2
trigger-command 0.4.0
trigger-command 0.4.1
trigger-command 0.5.0
trigger-command 0.5.1
trigger-command 0.5.2
trigger-command 0.5.3
trigger-command 0.6.0
trigger-command 0.7.0
Proposed
trigger-command 0.6.0 [installed]
trigger-command 0.7.0 [latest]
Having had conversations with LLMs there's an option to do a strict migration or soft deprecation of default behavior with the existing --summary flag.
Strict cutover with --all kept
New default: spin plugins list shows latest only.
--all means show all versions (same name as today).
Remove --summary entirely.
No compatibility aliasing.
Impact:
Users relying on default output (all versions) will see changed behavior.
Users already using --all in scripts should continue to work with little or no change.
Soft migration with --all kept
Same new default: latest only.
Keep --all for all versions.
Keep --summary temporarily as deprecated (hidden or warned) for one release cycle.
Optionally print deprecation warning when --summary is used.
Impact:
Minimal disruption for users who learned/used --summary.
Easier comms and rollout, then remove --summary later.
What this means compared to renaming to --all-versions
Keeping --all removes one migration burden: no need to teach a new flag name.
Most compatibility work shifts to handling --summary only.
In practice, strict vs soft mostly becomes:
Strict: remove --summary now.
Soft: deprecate --summary, remove later.
Recommendation
Keep --all and do soft migration if you want lowest user friction.
Keep --all and do strict cutover if you want the cleanest CLI immediately and can tolerate minor breakage for --summary users.
I'd like some feedback on which path to go down - soft or strict. Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the spin plugins list CLI entry point and inspect the current default output, --summary, and any existing all-versions behavior. Resolve whether the migration is strict or soft, then verify that the default lists the latest and installed versions, while --all lists every version and --summary follows the chosen compatibility policy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100