Skip to content

Commit b7741cc

Browse files
committed
Release beta version
1 parent 5b51e65 commit b7741cc

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

git2s3/__init__.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66

77
from git2s3.main import Git2S3
88

9-
version = "0.0.0-a"
9+
version = "0.0.0-b"
1010

1111

1212
@click.command()
1313
@click.argument("start", required=False)
14+
@click.argument("run", required=False)
1415
@click.option("--version", "-V", is_flag=True, help="Prints the version.")
1516
@click.option("--help", "-H", is_flag=True, help="Prints the help section.")
1617
@click.option(
@@ -50,19 +51,24 @@ def commandline(*args, **kwargs) -> None:
5051
for k, v in options.items()
5152
)
5253
if kwargs.get("version"):
53-
click.echo(f"Git2S3: {version}")
54+
click.echo(f"Git2S3 {version}")
5455
sys.exit(0)
5556
if kwargs.get("help"):
5657
click.echo(
57-
f"Usage: git2s3 [arbitrary-command]\nOptions (and corresponding behavior):{choices}"
58+
f"\nUsage: git2s3 [arbitrary-command]\nOptions (and corresponding behavior):{choices}"
5859
)
5960
sys.exit(0)
60-
if kwargs.get("start"):
61+
trigger = kwargs.get("start") or kwargs.get("run")
62+
if trigger and trigger.lower() in ("start", "run"):
6163
# Click doesn't support assigning defaults like traditional dictionaries, so kwargs.get("max", 100) won't work
6264
Git2S3(
6365
env_file=kwargs.get("env") or ".env", max_per_page=kwargs.get("max") or 100
6466
).start()
6567
sys.exit(0)
68+
elif trigger:
69+
click.secho(f"\n{trigger!r} - Invalid command", fg="red")
70+
else:
71+
click.secho("\nNo command provided", fg="red")
6672
click.echo(
6773
f"Usage: git2s3 [arbitrary-command]\nOptions (and corresponding behavior):{choices}"
6874
)

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = { file = "LICENSE" }
88
classifiers = [
99
"License :: OSI Approved :: MIT License",
1010
"Programming Language :: Python :: 3",
11-
"Development Status :: 3 - Alpha", # todo: change dev status to "Development Status :: 5 - Production/Stable"
11+
"Development Status :: 4 - Beta",
1212
"Operating System :: MacOS :: MacOS X",
1313
"Operating System :: Microsoft :: Windows",
1414
"Operating System :: POSIX :: Linux",

0 commit comments

Comments
 (0)