From 58e16f21b00cbd475a165874542dea7252a712e3 Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Fri, 5 Sep 2025 14:08:14 +0200 Subject: [PATCH] Enable command hints in the cli Enable printing of the command hints by default in all commands. Change-Id: I1e835ba8e32b7abc5094abcb28c130db7d508d5d Signed-off-by: Artem Goncharov --- codegenerator/templates/rust_cli/impl.rs.j2 | 2 ++ codegenerator/tests/unit/test_rust_cli.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/codegenerator/templates/rust_cli/impl.rs.j2 b/codegenerator/templates/rust_cli/impl.rs.j2 index 84954a8..2bb82db 100644 --- a/codegenerator/templates/rust_cli/impl.rs.j2 +++ b/codegenerator/templates/rust_cli/impl.rs.j2 @@ -266,6 +266,8 @@ impl {{ target_class_name }}Command { {%- endif %} {%- endif %} {#- specialities #} + // Show command specific hints + op.show_command_hint(); Ok(()) } } diff --git a/codegenerator/tests/unit/test_rust_cli.py b/codegenerator/tests/unit/test_rust_cli.py index a8923be..e178f45 100644 --- a/codegenerator/tests/unit/test_rust_cli.py +++ b/codegenerator/tests/unit/test_rust_cli.py @@ -113,6 +113,8 @@ impl fooCommand { let data = ep.query_async(client).await?; op.output_single::(data)?; + // Show command specific hints + op.show_command_hint(); Ok(()) } }