git-goose 0.3.0__tar.gz → 0.3.1__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_goose-0.3.0 → git_goose-0.3.1}/PKG-INFO +1 -1
- {git_goose-0.3.0 → git_goose-0.3.1}/src/git_goose.egg-info/PKG-INFO +1 -1
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/__main__.py +23 -2
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/_version.py +2 -2
- {git_goose-0.3.0 → git_goose-0.3.1}/.dockerignore +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.editorconfig +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.github/dependabot.yml +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.github/workflows/ci.yaml +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.github/workflows/release.yaml +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.gitignore +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.goose/node/manifest.json +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.goose/node/package-lock.json +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.goose/node/package.json +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.goose/python/manifest.json +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.goose/python/requirements.txt +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.goose/type-check/manifest.json +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/.goose/type-check/requirements.txt +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/Dockerfile +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/LICENSE +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/Makefile +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/README.md +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/goose.yaml +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/pyproject.toml +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/requirements.txt +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/ruff.toml +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/setup.cfg +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/git_goose.egg-info/SOURCES.txt +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/git_goose.egg-info/dependency_links.txt +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/git_goose.egg-info/requires.txt +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/git_goose.egg-info/top_level.txt +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/__init__.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/_utils/__init__.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/_utils/pydantic.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/asyncio.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/backend/__init__.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/backend/base.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/backend/index.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/backend/node.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/backend/python.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/config.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/context.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/environment.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/executable_unit.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/filter.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/git/__init__.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/git/shared.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/git/status.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/manifest.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/orphan_environments.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/parallel.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/paths.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/process.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/py.typed +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/scheduler.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/src/goose/targets.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/tests/__init__.py +0 -0
- {git_goose-0.3.0 → git_goose-0.3.1}/tests/test_targets.py +0 -0
|
@@ -23,6 +23,7 @@ from goose.backend.base import RunResult
|
|
|
23
23
|
from goose.config import EnvironmentId
|
|
24
24
|
from goose.config import HookConfig
|
|
25
25
|
|
|
26
|
+
from . import __version__
|
|
26
27
|
from .asyncio import asyncio_entrypoint
|
|
27
28
|
from .context import gather_context
|
|
28
29
|
from .environment import Environment
|
|
@@ -268,7 +269,7 @@ async def environment(
|
|
|
268
269
|
environment = ctx.environments[EnvironmentId(selected_environment)]
|
|
269
270
|
except KeyError:
|
|
270
271
|
error_console.print("No such environment")
|
|
271
|
-
raise
|
|
272
|
+
raise typer.Exit(1) from None
|
|
272
273
|
|
|
273
274
|
print_environment(environment)
|
|
274
275
|
|
|
@@ -289,7 +290,7 @@ async def select(
|
|
|
289
290
|
hook = next(hook for hook in ctx.config.hooks if hook.id == selected_hook)
|
|
290
291
|
except StopIteration:
|
|
291
292
|
error_console.print("No such hook.")
|
|
292
|
-
raise
|
|
293
|
+
raise typer.Exit(1) from None
|
|
293
294
|
|
|
294
295
|
if not hook.parameterize:
|
|
295
296
|
error_console.print(
|
|
@@ -329,5 +330,25 @@ async def git_hook(
|
|
|
329
330
|
hook_path.chmod(0o755)
|
|
330
331
|
|
|
331
332
|
|
|
333
|
+
def version_callback(print_version: bool) -> None:
|
|
334
|
+
if not print_version:
|
|
335
|
+
return
|
|
336
|
+
print(f"goose version {__version__}")
|
|
337
|
+
raise typer.Exit()
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
@cli.callback()
|
|
341
|
+
def main(
|
|
342
|
+
version: bool = typer.Option(
|
|
343
|
+
None,
|
|
344
|
+
"--version",
|
|
345
|
+
callback=version_callback,
|
|
346
|
+
is_eager=True,
|
|
347
|
+
help="Print version information.",
|
|
348
|
+
),
|
|
349
|
+
) -> None:
|
|
350
|
+
pass
|
|
351
|
+
|
|
352
|
+
|
|
332
353
|
if __name__ == "__main__":
|
|
333
354
|
cli()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|