Skip to content

make delete only need to expand vars in name - #13

Merged
scott-cotton merged 1 commit into
mainfrom
delete-defs
Aug 16, 2022
Merged

scott-cotton merged 1 commit into
mainfrom
delete-defs

Conversation

@scott-cotton

Copy link
Copy Markdown
Member

No description provided.

@scott-cotton
scott-cotton requested review from enisoc and jmsktm August 16, 2022 21:05

@foxish foxish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but I still think we should just encourage people to use delete <name> over delete -f --set <name> in our docs.

@scott-cotton
scott-cotton merged commit c391d7a into main Aug 16, 2022
@scott-cotton
scott-cotton deleted the delete-defs branch August 16, 2022 21:58
scott-cotton added a commit that referenced this pull request May 21, 2026
…lugin

Address findings #8 and #13 from the versioned-resource-plugins UX pass.

#8 — versions --help was one short line with no example. Expand the
short / long / example block to spell out: that the NAME argument is
the bare name (no @semver suffix); that 'get NAME@VERSION' is the way
to fetch a single version's spec; and that the output is sorted
highest-semver first.

#13 — versions <nonexistent> was returning exit 0 with empty rows,
because the server replies 200 with an empty payload for an unknown
name (it has no equivalent of the 404 'get' returns). A resource
plugin always has at least one version once it exists — publishing
creates the (name, version) row — so an empty list reliably means
'no such plugin'. Surface that as an error instead of silently
exiting 0, matching the behavior of 'resourceplugin get <nonexistent>'.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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