Compare commits

...

2 Commits

Author SHA1 Message Date
f282f86e72 make test a composite command so we can avoid failing fast 2025-06-13 05:46:30 +01:00
81d0072148 revert default to localhost.
the slow resolution was due to Docker desktop...

patch bump
2025-06-13 04:34:15 +01:00
4 changed files with 9 additions and 8 deletions

View File

@ -51,7 +51,7 @@ The CLI should now be discoverable as `slobs-cli`
Pass `--domain`, `--port` and `--token` as flags on the root command, for example: Pass `--domain`, `--port` and `--token` as flags on the root command, for example:
```console ```console
slobs-cli --domain 127.0.0.1 --port 59650 --token <API token> --help slobs-cli --domain localhost --port 59650 --token <API token> --help
``` ```
#### Environment Variables #### Environment Variables
@ -59,7 +59,7 @@ slobs-cli --domain 127.0.0.1 --port 59650 --token <API token> --help
Load the following values from your environment: Load the following values from your environment:
```env ```env
SLOBS_DOMAIN=127.0.0.1 SLOBS_DOMAIN=localhost
SLOBS_PORT=59650 SLOBS_PORT=59650
SLOBS_TOKEN=<API Token> SLOBS_TOKEN=<API Token>
``` ```

View File

@ -28,12 +28,13 @@ _.env_file = ".env"
cli.cmd = "slobs-cli {args}" cli.cmd = "slobs-cli {args}"
pre_test.cmd = "python tests/setup.py" _setup.cmd = "python tests/setup.py"
test.cmd = "pytest {args}" _teardown.cmd = "python tests/teardown.py"
post_test.cmd = "python tests/teardown.py" test.composite = ["_setup", "pytest {args}", "_teardown"]
test.keep_going = true
fmt.cmd = "ruff format {args}" fmt.cmd = "ruff format {args}"
lint.cmd = "ruff check {args}" post_fmt.cmd = "ruff check {args}"
[dependency-groups] [dependency-groups]
dev = [ dev = [

View File

@ -1,3 +1,3 @@
"""module for package metadata.""" """module for package metadata."""
__version__ = '0.9.2' __version__ = '0.9.3'

View File

@ -11,7 +11,7 @@ from .__about__ import __version__ as version
@click.option( @click.option(
'-d', '-d',
'--domain', '--domain',
default='127.0.0.1', default='localhost',
envvar='SLOBS_DOMAIN', envvar='SLOBS_DOMAIN',
show_default=True, show_default=True,
show_envvar=True, show_envvar=True,