mirror of
https://github.com/openai/codex.git
synced 2026-11-24 15:21:20 +00:00
feat: experimental codex stdio-to-uds subcommand (#5350)
This commit is contained in:
1 parent
0170860ef2
commit
d01f91ecec
9 files changed
+222
-5
No files matched your search
@@ -0,0 +1,19 @@
|
||||
use std::env;
|
||||
use std::path::PathBuf;
|
||||
use std::process;
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let mut args = env::args_os().skip(1);
|
||||
let Some(socket_path) = args.next() else {
|
||||
eprintln!("Usage: codex-stdio-to-uds <socket-path>");
|
||||
process::exit(1);
|
||||
};
|
||||
|
||||
if args.next().is_some() {
|
||||
eprintln!("Expected exactly one argument: <socket-path>");
|
||||
process::exit(1);
|
||||
}
|
||||
|
||||
let socket_path = PathBuf::from(socket_path);
|
||||
codex_stdio_to_uds::run(&socket_path)
|
||||
}
|
||||
Reference in new issue
Block a user