-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get version number from bare
gitverse
command
Release ``v2.7.1``
- Loading branch information
1 parent
e9abedf
commit c66d052
Showing
9 changed files
with
106 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = "2.7" | ||
version = "2.7.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
import click | ||
|
||
import gitverse | ||
|
||
|
||
@click.command() | ||
def main(*args) -> None: | ||
@click.pass_context | ||
@click.option("-V", "-v", "--version", required=False, is_flag=True, help="Get version of the package") | ||
def main(*args, version: bool = False) -> None: | ||
"""Generate a reStructuredText/Markdown file using GitHub releases or commit history. | ||
Run 'gitverse-release --help' to get release notes' specific information. | ||
Run 'gitverse-commit --help' to get commit history specific information. | ||
Run 'gitverse -V' or 'gitverse --v' to get the version information. | ||
""" | ||
if version: | ||
click.secho(click.style("v" + gitverse.version, fg='green')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters