Land milestone 4 first-run docs and media
Make the X11 user path visible on first contact instead of burying it under config and maintainer detail. Rewrite the README around the supported quickstart, expected tray and dictation result, install validation, troubleshooting, and linked follow-on docs. Split deep config and developer material into separate docs, add checked-in screenshots plus a short WebM walkthrough, and add a generator so the media assets stay reproducible. Also fix the CLI discovery gap by letting `aman --help` show the top-level command surface while keeping implicit foreground `run` behavior, and align the settings, help, and about copy with the supported service-plus-diagnostics model. Validation: `PYTHONPATH=src python3 -m unittest tests.test_aman_cli tests.test_config_ui`; `PYTHONPATH=src python3 -m unittest discover -s tests -p 'test_*.py'`; `python3 -m py_compile src/*.py tests/*.py scripts/generate_docs_media.py`; `PYTHONPATH=src python3 -m aman --help`. Milestone 4 stays open in the roadmap because `docs/x11-ga/first-run-review-notes.md` still needs a real non-implementer walkthrough.
This commit is contained in:
parent
ed1b59240b
commit
359b5fbaf4
16 changed files with 788 additions and 411 deletions
|
|
@ -115,6 +115,28 @@ class _FakeBenchEditorStage:
|
|||
|
||||
|
||||
class AmanCliTests(unittest.TestCase):
|
||||
def test_parse_cli_args_help_flag_uses_top_level_parser(self):
|
||||
out = io.StringIO()
|
||||
|
||||
with patch("sys.stdout", out), self.assertRaises(SystemExit) as exc:
|
||||
aman._parse_cli_args(["--help"])
|
||||
|
||||
self.assertEqual(exc.exception.code, 0)
|
||||
rendered = out.getvalue()
|
||||
self.assertIn("run", rendered)
|
||||
self.assertIn("doctor", rendered)
|
||||
self.assertIn("self-check", rendered)
|
||||
self.assertIn("systemd --user service", rendered)
|
||||
|
||||
def test_parse_cli_args_short_help_flag_uses_top_level_parser(self):
|
||||
out = io.StringIO()
|
||||
|
||||
with patch("sys.stdout", out), self.assertRaises(SystemExit) as exc:
|
||||
aman._parse_cli_args(["-h"])
|
||||
|
||||
self.assertEqual(exc.exception.code, 0)
|
||||
self.assertIn("self-check", out.getvalue())
|
||||
|
||||
def test_parse_cli_args_defaults_to_run_command(self):
|
||||
args = aman._parse_cli_args(["--dry-run"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue