Skip to content

Commit

Permalink
Release beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Jun 26, 2024
1 parent 5b51e65 commit b7741cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions git2s3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

from git2s3.main import Git2S3

version = "0.0.0-a"
version = "0.0.0-b"


@click.command()
@click.argument("start", required=False)
@click.argument("run", required=False)
@click.option("--version", "-V", is_flag=True, help="Prints the version.")
@click.option("--help", "-H", is_flag=True, help="Prints the help section.")
@click.option(
Expand Down Expand Up @@ -50,19 +51,24 @@ def commandline(*args, **kwargs) -> None:
for k, v in options.items()
)
if kwargs.get("version"):
click.echo(f"Git2S3: {version}")
click.echo(f"Git2S3 {version}")
sys.exit(0)
if kwargs.get("help"):
click.echo(
f"Usage: git2s3 [arbitrary-command]\nOptions (and corresponding behavior):{choices}"
f"\nUsage: git2s3 [arbitrary-command]\nOptions (and corresponding behavior):{choices}"
)
sys.exit(0)
if kwargs.get("start"):
trigger = kwargs.get("start") or kwargs.get("run")
if trigger and trigger.lower() in ("start", "run"):
# Click doesn't support assigning defaults like traditional dictionaries, so kwargs.get("max", 100) won't work
Git2S3(
env_file=kwargs.get("env") or ".env", max_per_page=kwargs.get("max") or 100
).start()
sys.exit(0)
elif trigger:
click.secho(f"\n{trigger!r} - Invalid command", fg="red")
else:
click.secho("\nNo command provided", fg="red")
click.echo(
f"Usage: git2s3 [arbitrary-command]\nOptions (and corresponding behavior):{choices}"
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha", # todo: change dev status to "Development Status :: 5 - Production/Stable"
"Development Status :: 4 - Beta",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
Expand Down

0 comments on commit b7741cc

Please sign in to comment.