chrome-webstore-upload-cli icon indicating copy to clipboard operation
chrome-webstore-upload-cli copied to clipboard

Switch default behavior to auto-publish

Open DrewML opened this issue 9 years ago • 7 comments

TODO:

  • Remove --auto-publish flag
  • Change behavior of webstore (without sub-commands) to do an upload + publish
  • ~~Make upload command include publishing by default~~
  • ~~Add --no-publish flag to disable publishing when running upload command~~

https://github.com/sindresorhus/refined-github/pull/235#discussion_r65682540

DrewML avatar Jun 06 '16 05:06 DrewML

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.

sindresorhus avatar Jun 06 '16 19:06 sindresorhus

👍 I like it. Less complexity, better DX.

DrewML avatar Jun 06 '16 20:06 DrewML

@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?

DrewML avatar Jun 26 '16 18:06 DrewML

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.

DrewML avatar Jun 28 '16 01:06 DrewML

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

sindresorhus avatar Jun 29 '16 21:06 sindresorhus

Any movement on this?

sindresorhus avatar Aug 16 '16 09:08 sindresorhus

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.

DrewML avatar Sep 04 '16 20:09 DrewML