Skip to content

Commit

Permalink
Rename cli to export-definitions (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann authored Mar 22, 2024
1 parent 2c26bb2 commit 6552001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nomenclature/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ def check_region_aggregation(
differences_df.reset_index().to_excel(differences, index=False)


@cli.command("export-definition")
@cli.command("export-definitions")
@click.argument("path", type=click.Path(exists=True, path_type=Path))
@click.argument("target", type=click.Path(path_type=Path))
def cli_export_definition_to_excel(
def cli_export_definitions_to_excel(
path: Path,
target: Path,
):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_cli_installed():
command in result.stdout
for command in (
"check-region-aggregation",
"export-definition",
"export-definitions",
"validate-project",
"validate-yaml",
)
Expand Down Expand Up @@ -323,7 +323,7 @@ def test_cli_export_to_excel(tmpdir):
runner.invoke(
cli,
[
"export-definition",
"export-definitions",
str(TEST_DATA_DIR / "general-config"),
str(file),
],
Expand Down

0 comments on commit 6552001

Please sign in to comment.