diff --git a/CHANGELOG.md b/CHANGELOG.md index ada10f9..c671683 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to Milo are documented here. +## 0.2.1 — 2026-04-10 + +### Fixed + +- Fixed group bare invocation showing "Unknown command" instead of group help, and help output now lists subcommands by name instead of raw argparse internals. + ## 0.2.0 — 2026-04-10 ### Added diff --git a/changelog.d/+group-help-fix.fixed.md b/changelog.d/+group-help-fix.fixed.md deleted file mode 100644 index ddc90e4..0000000 --- a/changelog.d/+group-help-fix.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Fixed group bare invocation showing "Unknown command" instead of group help, and help output now lists subcommands by name instead of raw argparse internals. diff --git a/changelog.d/+release-0.2.1.changed.md b/changelog.d/+release-0.2.1.changed.md new file mode 100644 index 0000000..81c292a --- /dev/null +++ b/changelog.d/+release-0.2.1.changed.md @@ -0,0 +1 @@ +Towncrier `title_format` updated to match established changelog heading style (`## version — date`). diff --git a/pyproject.toml b/pyproject.toml index 4e5b8d6..6c26f1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "milo-cli" -version = "0.2.0" +version = "0.2.1" description = "Template-driven CLI applications for free-threaded Python" readme = "README.md" requires-python = ">=3.14" @@ -136,7 +136,7 @@ directory = "changelog.d" filename = "CHANGELOG.md" package = "milo" package_dir = "src" -title_format = "## [{version}] - {project_date}" +title_format = "## {version} — {project_date}" issue_format = "[#{issue}](https://github.com/lbliii/milo-cli/issues/{issue})" underlines = ["", "", ""] diff --git a/site/content/releases/0.2.1.md b/site/content/releases/0.2.1.md new file mode 100644 index 0000000..ce8899b --- /dev/null +++ b/site/content/releases/0.2.1.md @@ -0,0 +1,17 @@ +--- +title: Milo 0.2.1 +description: Fix group help display and subcommand listing. +type: changelog +date: 2026-04-10 +draft: false +lang: en +tags: [release, changelog] +keywords: [release, 0.2.1] +category: changelog +--- + +Patch release fixing group command help display. + +## Fixed + +- **Group help display** — Bare invocation of a command group now correctly shows group help instead of "Unknown command". Help output lists subcommands by name instead of raw argparse internals. diff --git a/src/milo/__init__.py b/src/milo/__init__.py index 56765bd..af5233e 100644 --- a/src/milo/__init__.py +++ b/src/milo/__init__.py @@ -154,7 +154,7 @@ def _Py_mod_gil() -> int: # noqa: N802 return 0 -__version__ = "0.2.0" +__version__ = "0.2.1" __all__ = [ "BUILTIN_ACTIONS", "CLI", diff --git a/tests/test_effects.py b/tests/test_effects.py index bdd404a..8c2cfb7 100644 --- a/tests/test_effects.py +++ b/tests/test_effects.py @@ -992,14 +992,14 @@ def inner_saga(): yield Put(Action("DEBOUNCED_FIRE")) def parent(): - # First debounce — 0.15s - yield Debounce(seconds=0.15, saga=inner_saga) + # First debounce — 0.2s + yield Debounce(seconds=0.2, saga=inner_saga) # Wait a bit, then retrigger before first fires yield Delay(seconds=0.05) # Second debounce — resets the timer - yield Debounce(seconds=0.15, saga=inner_saga) + yield Debounce(seconds=0.2, saga=inner_saga) # Wait long enough for second to fire - yield Delay(seconds=0.3) + yield Delay(seconds=0.5) def reducer(state, action): actions.append(action.type) @@ -1007,7 +1007,7 @@ def reducer(state, action): store = Store(reducer, None) store.run_saga(parent()) - time.sleep(0.6) + time.sleep(1.0) store._executor.shutdown(wait=True) # Should fire exactly once (first timer cancelled, second fires) diff --git a/uv.lock b/uv.lock index 205f744..a2ef2cd 100644 --- a/uv.lock +++ b/uv.lock @@ -478,7 +478,7 @@ wheels = [ [[package]] name = "milo-cli" -version = "0.2.0" +version = "0.2.1" source = { editable = "." } dependencies = [ { name = "kida-templates" },