Skip to content

Commit

Permalink
install client as s3nd
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Sep 6, 2024
1 parent 0f0e90a commit e120017
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ build-backend = "setuptools.build_meta"

[project.scripts]
s3daemon = "s3daemon.s3daemon:main"
s3nd = "s3daemon.send:main"

[tool.setuptools_scm]

Expand Down
11 changes: 10 additions & 1 deletion python/s3daemon/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,14 @@ def send(filename, dest):
sys.exit(1)


if __name__ == "__main__":
def main():
"""The chicken is in the pot."""
if len(sys.argv) != 3:
print(f"Usage: {sys.argv[0]} filename dest", file=sys.stderr)
sys.exit(1)

send(sys.argv[1], sys.argv[2])


if __name__ == "__main__":
main()

0 comments on commit e120017

Please sign in to comment.