Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Enable dry run mode #39

Open
shoenig opened this issue Dec 20, 2020 · 0 comments
Open

Enable dry run mode #39

shoenig opened this issue Dec 20, 2020 · 0 comments

Comments

@shoenig
Copy link
Contributor

shoenig commented Dec 20, 2020

In some cases it would be nice to see what taggit will produce without actually creating it.

For example, a CI pipeline that injects the version string at build time would need to know the next version (i.e. run taggit in -dry mode), commit the change, then run taggit again for real to create and publish the version.

Noticed I was really sloppy with the existing flags where it just gets pulled from the FlagSet. Ideally we should follow the example, which creates a local variable and passes it in by reference to be set during Parse.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant