Compare commits

..
4 Commits
Author SHA1 Message Date
KKlochko cd7f896c7d Add docker-tags-getter and docker_tags_getter as command names.
continuous-integration/drone/push Build is passing
2023-06-21 10:36:28 +03:00
KKlochko f4080a4b95 Add an option to show the tag full name (namespace/repository:tag). 2023-06-21 10:33:40 +03:00
KKlochko 8ac62992f9 Fix the error in README.rst.
continuous-integration/drone/push Build is passing
2023-06-19 10:20:46 +03:00
KKlochko 8e771728c4 Update the description.
continuous-integration/drone/push Build is failing
2023-06-19 10:05:27 +03:00
4 changed files with 19 additions and 4 deletions
+4
View File
@@ -8,4 +8,8 @@
Added the filter option for a list of tags.
** 0.3.1 <2023-06-19 Mon>
Added the CI/CD configuration and tests.
** 0.3.2 <2023-06-19 Mon>
Updated the description.
** 0.3.3 <2023-06-19 Mon>
Fixed the error in README.rst.
+1 -1
View File
@@ -1,5 +1,5 @@
docker_tags_getter
=========
==================
docker_tags_getter is the application that will help you to get tags from yours docker repository.
+10 -1
View File
@@ -48,6 +48,11 @@ def tags(
help="[b]The tags[/] will be filtered.",
show_default=False
),
full_name: bool = typer.Option(
None, "--full-name", "-fn",
help="[b]The tags[/] will be shown with their [b]namespace and repository[/].",
show_default=False
),
):
"""
[green b]All tags[/] will be returned for the [yellow b]namespace[/].
@@ -74,6 +79,10 @@ def tags(
tags_filter = TagsFilter()
tags = tags_filter.filter_list(tags)
prefix = ''
if full_name:
prefix = f'{namespace}/{repository}:'
for tag in tags:
console.print(tag)
console.print(f'{prefix}{tag}')
+4 -2
View File
@@ -1,7 +1,7 @@
[tool.poetry]
name = "docker-tags-getter"
version = "0.3.1"
description = ""
version = "0.3.5"
description = "docker_tags_getter will help you to get tags from your docker repository."
authors = ["Kostiantyn Klochko <kostya_klochko@ukr.net>"]
readme = "README.rst"
license = "LGPL-3.0-or-later"
@@ -20,6 +20,8 @@ requests = "^2.31.0"
[tool.poetry.scripts]
dtg = "docker_tags_getter.main:main"
docker_tags_getter = "docker_tags_getter.main:main"
docker-tags-getter = "docker_tags_getter.main:main"
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.2"