close: tui cli parsing extraction
This commit is contained in:
parent
7141734f07
commit
80a41d3264
|
|
@ -2,12 +2,12 @@
|
|||
id: 20260531-074258-tui-extract-cli-parsing
|
||||
slug: tui-extract-cli-parsing
|
||||
title: TUI: extract CLI parsing from main.rs
|
||||
status: open
|
||||
status: closed
|
||||
kind: task
|
||||
priority: P2
|
||||
labels: [tui, cleanup]
|
||||
created_at: 2026-05-31T07:42:58Z
|
||||
updated_at: 2026-05-31T07:42:58Z
|
||||
updated_at: 2026-05-31T13:38:30Z
|
||||
assignee: null
|
||||
legacy_ticket: null
|
||||
---
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
This ticket is completed/superseded by `insomnia-crate-cli-owner`.
|
||||
|
||||
The original goal was to remove CLI parsing from `crates/tui/src/main.rs` so the TUI crate would stop owning top-level product CLI parsing. The later `insomnia-crate-cli-owner` implementation went further:
|
||||
|
||||
- the product binary moved from package `tui` to package `insomnia`;
|
||||
- top-level CLI parsing and dispatch now live in `crates/insomnia/src/main.rs`;
|
||||
- `tui` is now a library implementation crate with no product `main.rs`;
|
||||
- `insomnia pod ...` and `insomnia memory lint ...` are routed by the `insomnia` crate;
|
||||
- normal TUI launch is delegated to `tui::launch(...)`.
|
||||
|
||||
Because the TUI crate no longer owns the product entrypoint or CLI parser, there is no remaining `tui/src/main.rs` CLI parsing extraction to implement under this ticket. Further CLI parser cleanup, if desired, belongs to the `insomnia` crate, not this TUI cleanup ticket.
|
||||
|
||||
Validation evidence from `insomnia-crate-cli-owner` closure:
|
||||
- `cargo test -p insomnia`
|
||||
- CLI smoke for `--help`, `pod --help`, `memory lint --help`, invalid `--session`, and resume/Pod selection conflicts
|
||||
- `cargo check -p client -p pod -p tui -p insomnia`
|
||||
- `nix build .#insomnia`
|
||||
- `./tickets.sh doctor`
|
||||
- `git diff --check`
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
<!-- event: create author: tickets.sh at: 2026-05-31T07:42:58Z -->
|
||||
|
||||
## Created
|
||||
|
||||
Created by tickets.sh create.
|
||||
|
||||
---
|
||||
|
||||
<!-- event: close author: hare at: 2026-05-31T13:38:30Z status: closed -->
|
||||
|
||||
## Closed
|
||||
|
||||
This ticket is completed/superseded by `insomnia-crate-cli-owner`.
|
||||
|
||||
The original goal was to remove CLI parsing from `crates/tui/src/main.rs` so the TUI crate would stop owning top-level product CLI parsing. The later `insomnia-crate-cli-owner` implementation went further:
|
||||
|
||||
- the product binary moved from package `tui` to package `insomnia`;
|
||||
- top-level CLI parsing and dispatch now live in `crates/insomnia/src/main.rs`;
|
||||
- `tui` is now a library implementation crate with no product `main.rs`;
|
||||
- `insomnia pod ...` and `insomnia memory lint ...` are routed by the `insomnia` crate;
|
||||
- normal TUI launch is delegated to `tui::launch(...)`.
|
||||
|
||||
Because the TUI crate no longer owns the product entrypoint or CLI parser, there is no remaining `tui/src/main.rs` CLI parsing extraction to implement under this ticket. Further CLI parser cleanup, if desired, belongs to the `insomnia` crate, not this TUI cleanup ticket.
|
||||
|
||||
Validation evidence from `insomnia-crate-cli-owner` closure:
|
||||
- `cargo test -p insomnia`
|
||||
- CLI smoke for `--help`, `pod --help`, `memory lint --help`, invalid `--session`, and resume/Pod selection conflicts
|
||||
- `cargo check -p client -p pod -p tui -p insomnia`
|
||||
- `nix build .#insomnia`
|
||||
- `./tickets.sh doctor`
|
||||
- `git diff --check`
|
||||
|
||||
|
||||
---
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<!-- event: create author: tickets.sh at: 2026-05-31T07:42:58Z -->
|
||||
|
||||
## Created
|
||||
|
||||
Created by tickets.sh create.
|
||||
|
||||
---
|
||||
Loading…
Reference in New Issue
Block a user