Skip to content

v2/rails: Terminalwire::V2::Rails::Thor mixin + browser/file/dir/env helpers#31

Merged
bradgessler merged 1 commit into
mainfrom
v2-rails-terminal-mixin
Jun 23, 2026
Merged

v2/rails: Terminalwire::V2::Rails::Thor mixin + browser/file/dir/env helpers#31
bradgessler merged 1 commit into
mainfrom
v2-rails-terminal-mixin

Conversation

@bradgessler

Copy link
Copy Markdown
Contributor

Makes the v2 Thor CLI a drop-in for v1's Rails terminal: Terminalwire::V2::Rails::Thor (v2 I/O + session + Rails URL helpers in no_commands), and exposes browser/file/directory/env/client on the CLI instance via the v2 Thor Helpers. So unchanged Thor commands (browser.launch(terminal_authorization_url), etc.) work over v2. Verified: v2-only ogplus login reaches 'Waiting for authorization'. Suite 96/0.

…y/env helpers

Make the v2 Thor CLI a drop-in for v1's Rails terminal:
- Terminalwire::V2::Rails::Thor — include it to get v2 I/O + the client session +
  Rails route URL helpers (root_url, *_url) in no_commands. The v2 equivalent of v1's
  Terminalwire::Thor. The per-connection host is already set by the handler.
- Expose the client resources on the CLI instance via the v2 Thor Helpers: browser,
  file, directory, env, client (alias for context) — so unchanged Thor commands like
  `browser.launch(terminal_authorization_url)` work over v2.

Verified: v2-only ogplus login now reaches 'Waiting for authorization' (URL helper +
browser resolve); whoami stays graceful. Full suite 96/0.
@bradgessler bradgessler merged commit a262448 into main Jun 23, 2026
@bradgessler bradgessler deleted the v2-rails-terminal-mixin branch June 23, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant