Skip to content

Commit

Permalink
Fix AssertionError, add missing register
Browse files Browse the repository at this point in the history
  • Loading branch information
qduanmu committed Dec 4, 2024
1 parent 2df503b commit 1669ea8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/trestlebot/cli/test_rule_transform_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ def test_rule_transform(tmp_repo: Tuple[str, Repo]) -> None:
assert result.exit_code == 0
assert repo_path.joinpath(test_md).exists()
commit = next(repo.iter_commits())
assert len(commit.stats.files) == 16
assert len(commit.stats.files) == 9
2 changes: 1 addition & 1 deletion trestlebot/cli/commands/autosync.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
logger = logging.getLogger(__name__)


@click.command("autosync")
@click.command("autosync", help="Autosync catalog, profile, compdef and ssp.")
@click.pass_context
@common_options
@git_options
Expand Down
4 changes: 3 additions & 1 deletion trestlebot/cli/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from trestlebot.cli.commands.autosync import autosync_cmd
from trestlebot.cli.commands.create import create_cmd
from trestlebot.cli.commands.init import init_cmd
from trestlebot.cli.commands.rule_transform import rule_transform_cmd
from trestlebot.cli.commands.sync_upstreams import sync_upstreams_cmd


Expand All @@ -29,6 +30,7 @@ def root_cmd(ctx: click.Context) -> None:


root_cmd.add_command(init_cmd)
root_cmd.add_command(create_cmd)
root_cmd.add_command(autosync_cmd)
root_cmd.add_command(create_cmd)
root_cmd.add_command(rule_transform_cmd)
root_cmd.add_command(sync_upstreams_cmd)

0 comments on commit 1669ea8

Please sign in to comment.