Skip to content
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 src/hermes/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _process_result(value: t.Any) -> t.Any:

@click.group(cls=WorkflowCommand, invoke_without_command=True)
@click.option("--deposit", is_flag=True, default=False)
@click.option("--post", is_flag=True, default=False)
@click.option("--postprocess", is_flag=True, default=False)
@click.option('--path', default=pathlib.Path('./'), help='Working path', type=pathlib.Path)
@click.pass_context
def main(ctx: click.Context, *args, **kwargs) -> None:
Expand All @@ -156,4 +156,4 @@ def main(ctx: click.Context, *args, **kwargs) -> None:
main.add_command(workflow.harvest)
main.add_command(workflow.process)
main.add_command(workflow.deposit)
main.add_command(workflow.post)
main.add_command(workflow.postprocess)
2 changes: 1 addition & 1 deletion src/hermes/commands/process/cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def add_name(ctx: CodeMetaContext, harvest_ctx: HermesHarvestContext):
"""
Augment each author with a `name` attribute (if not present).

This will allow better matching against the git authors and can be removed in a post-process step.
This will allow better matching against the git authors and can be removed in a post-processing step.

:param ctx: The resulting context that should contain the harmonized data.
:param harvest_ctx: The harvest context containing all raw harvested data.
Expand Down
4 changes: 2 additions & 2 deletions src/hermes/commands/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def deposit():


@click.group(invoke_without_command=True)
def post():
def postprocess():
"""
Post-process metadata after deposition
Postprocess metadata after deposition
"""
click.echo("Post-processing")
16 changes: 8 additions & 8 deletions test/hermes_test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def test_hermes_with_deposit():
assert not result.exception


def test_hermes_with_post():
def test_haggis_with_postprocess():
runner = CliRunner()
result = runner.invoke(cli.main, args=('--post', ))
result = runner.invoke(cli.main, args=('--postprocess', ))

assert not result.exception

Expand All @@ -115,9 +115,9 @@ def test_hermes_with_path():
assert not result.exception


def test_hermes_with_deposit_and_post():
def test_haggis_with_deposit_and_postprocess():
runner = CliRunner()
result = runner.invoke(cli.main, args=('--deposit', '--post'))
result = runner.invoke(cli.main, args=('--deposit', '--postprocess'))

assert not result.exception

Expand All @@ -129,15 +129,15 @@ def test_hermes_with_deposit_and_path():
assert not result.exception


def test_hermes_with_path_and_post():
def test_haggis_with_path_and_postprocess():
runner = CliRunner()
result = runner.invoke(cli.main, args=('--path', './', '--post'))
result = runner.invoke(cli.main, args=('--path', './', '--postprocess'))

assert not result.exception


def test_hermes_with_deposit_and_post_and_path():
def test_haggis_with_deposit_and_postprocess_and_path():
runner = CliRunner()
result = runner.invoke(cli.main, args=('--deposit', '--post', '--path', './'))
result = runner.invoke(cli.main, args=('--deposit', '--postprocess', '--path', './'))

assert not result.exception