Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Conversation

@riyazdf
Copy link
Contributor

@riyazdf riyazdf commented Sep 14, 2016

Factors out the --reset and --unstage flags from notary status into a new notary reset command.
The notary status command now does not have any flags and cannot mutate any state.

  • notary reset <GUN> --all resets all staged changes for a gun
  • notary reset <GUN> -n 1 -n 2 resets the change items numbered 1 and 2 from notary status <GUN>

Signed-off-by: Riyaz Faizullabhoy riyaz.faizullabhoy@docker.com

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
@cyli
Copy link
Contributor

cyli commented Sep 14, 2016

Non-blocking nitpick: Wondering if notary reset GUN # # # and notary reset GUN --all would make sense? Alternately, notary reset GUN -n 1 -n 2 to remove specific ones? Just because reset and unstage are sort of similar words to me, it just sounds odd to use one as the flag for the other.

@riyazdf
Copy link
Contributor Author

riyazdf commented Sep 14, 2016

@cyli: agreed! notary reset GUN -n 1 -n 2 and notary reset GUN --all make much more sense in the context of this new command. I'll update this 👍

Copy link
Contributor

@cyli cyli left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for fixing this! LGTM

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
Copy link
Contributor

@endophage endophage left a comment

Choose a reason for hiding this comment

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

LGTM

@endophage endophage merged commit 7ab58e5 into release/0.4.0 Sep 16, 2016
@endophage endophage deleted the notary-reset-cmd branch September 16, 2016 23:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants