chrome-webstore-upload-cli
chrome-webstore-upload-cli copied to clipboard
Switch default behavior to auto-publish
TODO:
- Remove
--auto-publishflag - Change behavior of
webstore(without sub-commands) to do an upload + publish - ~~Make
uploadcommand include publishing by default~~ - ~~Add
--no-publishflag to disable publishing when runninguploadcommand~~
https://github.com/sindresorhus/refined-github/pull/235#discussion_r65682540
Maybe it would be better if $ webstore (no sub-command) uploaded and published. If you want either independently, you can use the sub-commands. That way you don't need the flag and the most common use-case gets easier.
👍 I like it. Less complexity, better DX.
@sindresorhus Quick Q for you, since you have more experience writing CLIs than I do.
For the --help text, right now we have:
Usage
$ webstore <command>
where <command> is one of
upload, publish
What kind of verbiage would you expect to see here instead when those are optional, and the default is both?
I've got a branch for this locally. Going to sit on it until #5 is ready so we only have to do a single major version bump.
I dunno. Probably something like this:
Usage
$ webstore [command]
Commands
upload - Description
publish - Description
When no command is specified it will both upload and publish
Any movement on this?
Sorry about that, will get to it soon. Have been putting it off in favor of some work on other projects, but definitely want to make it happen.