diff --git a/ozi/new/interactive.py b/ozi/new/interactive.py index 503c4332..5dc1e4a2 100644 --- a/ozi/new/interactive.py +++ b/ozi/new/interactive.py @@ -48,6 +48,7 @@ from prompt_toolkit.widgets import RadioList from ozi.spec import METADATA +from ozi.tap import TAP from ozi.trove import Prefix from ozi.trove import from_prefix @@ -761,7 +762,7 @@ def ok_handler() -> None: Button(text=cancel_text, handler=_return_none), ], with_background=True, - width=longest_line + 8 if longest_line > 40 else 80, + width=min(longest_line + 8, 80), ) bindings = KeyBindings() bindings.add('tab')(focus_next) @@ -1236,5 +1237,5 @@ def interactive_prompt(project: Namespace) -> list[str]: # noqa: C901 # pragma for i in v: if len(i) > 0: ret_args += [k, i] - print(ret_args) + TAP.diagnostic('ozi-new project args', ' '.join(ret_args)) return ret_args diff --git a/requirements.in b/requirements.in index 2974a20e..3f78cd51 100644 --- a/requirements.in +++ b/requirements.in @@ -3,7 +3,7 @@ dnspython idna>=2 jinja2>=3 meson[ninja]>=1.1.0 -ozi-templates~=2.3.3 +ozi-templates~=2.3.4 packaging~=24.0 pip-tools prompt_toolkit