Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine the command #204

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charon/cmd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from charon.cmd.cmd_upload import upload
from charon.cmd.cmd_delete import delete
from charon.cmd.cmd_index import index
from charon.cmd.cmd_checksum import validate
from charon.cmd.cmd_checksum import checksum_validate
from charon.cmd.cmd_cache import cf_invalidate, cf_check


Expand All @@ -33,6 +33,6 @@ def cli():
cli.add_command(upload)
cli.add_command(delete)
cli.add_command(index)
cli.add_command(validate)
cli.add_command(checksum_validate)
cli.add_command(cf_invalidate)
cli.add_command(cf_check)
5 changes: 3 additions & 2 deletions charon/cmd/cmd_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def cf_invalidate(
quiet: bool = False,
debug: bool = False
):
"""This command will do invalidating on AWS CloudFront for the specified paths.
"""Do invalidating on AWS CloudFront for the specified paths.
"""
_decide_mode(
f"cfclear-{target}", "",
Expand Down Expand Up @@ -167,7 +167,8 @@ def cf_check(
quiet: bool = False,
debug: bool = False
):
"""This command will check the invalidation status of the specified invalidation id.
"""Check the invalidation status of the specified invalidation id
for AWS CloudFront.
"""
_decide_mode(
f"cfcheck-{target}", "",
Expand Down
15 changes: 8 additions & 7 deletions charon/cmd/cmd_checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
required=True
)
@command()
def validate(
def checksum_validate(
path: str,
target: str,
includes: List[str],
Expand All @@ -109,12 +109,13 @@ def validate(
quiet: bool = False,
debug: bool = False
):
"""This command will validate the checksum of the specified path for the
maven repository. It will calculate the sha1 checksum of all artifact
files in the specified path and compare with the companied .sha1 files
of the artifacts, then record all mismatched artifacts in the report file.
If some artifact files misses the companied .sha1 files, they will also
be recorded.
"""
Validate the checksum of the specified path for themaven repository.
It will calculate the sha1 checksum of all artifact files in the
specified path and compare with the companied .sha1 files of the
artifacts, then record all mismatched artifacts in the report file.
If some artifact files misses the companied .sha1 files, they will also
be recorded.
"""
_decide_mode(
"checksum-{}".format(target), path.replace("/", "_"),
Expand Down
2 changes: 1 addition & 1 deletion charon/cmd/cmd_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def index(
quiet: bool = False,
dryrun: bool = False
):
"""This command will re-generate the index.html files for the
"""Generate or refresh the index.html files for the
specified path.
"""
_decide_mode(
Expand Down
Loading