ghr icon indicating copy to clipboard operation
ghr copied to clipboard

Actually -delete release?

Open danielbayley opened this issue 6 years ago • 0 comments

Following on from #31… as far as I can tell there is actually no way to completely delete a release…?

You closed that PR as mentioned because of not wanting to confuse users, but the options as they stand are much more confusing…

Surely -delete should actually delete the release instead of apparently being an alias of -recreate (which isn't listed as a separate option) and therefore also not require a PATH argument… Also -draft (Unpublish) doesn't unpublish anything; it just creates a new draft release (which maybe it should… but why use the term "unpublish"? -unpublish could be an alias for -delete or actually do what it suggests).

IMO the expected API should be something like:

-delete [TAG] # Delete [TAG] release if given, else delete latest release. PATH arg unnecessary.
-unpublish # Alias of -delete
-draft # Release as draft
-title # Set release title
-d|-description # Set text describing the contents of the release

Also, is there any reason the more common -- long style options aren't available?

Otherwise great tool @tcnksm 👍

danielbayley avatar Oct 20 '18 20:10 danielbayley