git-tide 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {git_tide-0.1.1 → git_tide-0.1.2}/PKG-INFO +1 -1
- {git_tide-0.1.1 → git_tide-0.1.2}/pyproject.toml +1 -1
- {git_tide-0.1.1 → git_tide-0.1.2}/src/tide/cli.py +12 -7
- {git_tide-0.1.1 → git_tide-0.1.2}/src/tide/core.py +1 -1
- {git_tide-0.1.1 → git_tide-0.1.2}/README.md +0 -0
- {git_tide-0.1.1 → git_tide-0.1.2}/src/tide/__init__.py +0 -0
- {git_tide-0.1.1 → git_tide-0.1.2}/src/tide/__main__.py +0 -0
- {git_tide-0.1.1 → git_tide-0.1.2}/src/tide/gitutils.py +0 -0
|
@@ -8,6 +8,7 @@ from pathlib import Path
|
|
|
8
8
|
|
|
9
9
|
from .core import (
|
|
10
10
|
is_url,
|
|
11
|
+
cz,
|
|
11
12
|
get_tag_for_branch,
|
|
12
13
|
get_modified_projects,
|
|
13
14
|
get_projects,
|
|
@@ -284,7 +285,7 @@ def projects(modified: bool) -> None:
|
|
|
284
285
|
click.echo(f"{project_name} = {project_dir}")
|
|
285
286
|
|
|
286
287
|
|
|
287
|
-
@cli.command(
|
|
288
|
+
@cli.command("get-tag")
|
|
288
289
|
@click.option(
|
|
289
290
|
"--path",
|
|
290
291
|
default=".",
|
|
@@ -302,19 +303,23 @@ def projects(modified: bool) -> None:
|
|
|
302
303
|
),
|
|
303
304
|
)
|
|
304
305
|
@click.option(
|
|
305
|
-
"--
|
|
306
|
+
"--remote",
|
|
306
307
|
default="origin",
|
|
307
308
|
show_default=True,
|
|
308
309
|
help="The git remote to use to when determining the next version.",
|
|
309
310
|
)
|
|
310
|
-
|
|
311
|
+
@click.option("--next", "-n", is_flag=True, default=False)
|
|
312
|
+
def get_tag(path: str, branch: str | None, remote: str, next: bool) -> None:
|
|
311
313
|
"""
|
|
312
314
|
Get the next tag.
|
|
313
315
|
"""
|
|
314
|
-
if
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
if next:
|
|
317
|
+
if branch is None:
|
|
318
|
+
runtime = get_runtime()
|
|
319
|
+
branch = runtime.current_branch()
|
|
320
|
+
click.echo(get_tag_for_branch(CONFIG, remote, branch, Path(path)))
|
|
321
|
+
else:
|
|
322
|
+
click.echo(cz("version", "--project", folder=path))
|
|
318
323
|
|
|
319
324
|
|
|
320
325
|
def main() -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|