mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
renaming things
This commit is contained in:
@@ -328,8 +328,8 @@ fn run_update_action(action: UpdateAction) -> anyhow::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn run_execpolicy_check(cli: ExecPolicyCheckCommand) -> anyhow::Result<()> {
|
||||
let json = cli.run()?;
|
||||
fn run_execpolicycheck(cmd: ExecPolicyCheckCommand) -> anyhow::Result<()> {
|
||||
let json = cmd.run()?;
|
||||
println!("{json}");
|
||||
Ok(())
|
||||
}
|
||||
@@ -570,9 +570,7 @@ async fn cli_main(codex_linux_sandbox_exe: Option<PathBuf>) -> anyhow::Result<()
|
||||
tokio::task::spawn_blocking(move || codex_stdio_to_uds::run(socket_path.as_path()))
|
||||
.await??;
|
||||
}
|
||||
Some(Subcommand::ExecPolicyCheck(execpolicy_cli)) => {
|
||||
run_execpolicy_check(execpolicy_cli)?;
|
||||
}
|
||||
Some(Subcommand::ExecPolicyCheck(cmd)) => run_execpolicycheck(cmd)?,
|
||||
Some(Subcommand::Features(FeaturesCli { sub })) => match sub {
|
||||
FeaturesSubcommand::List => {
|
||||
// Respect root-level `-c` overrides plus top-level flags like `--profile`.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
pub mod cli;
|
||||
pub mod execpolicycheck;
|
||||
pub mod decision;
|
||||
pub mod error;
|
||||
pub mod parser;
|
||||
pub mod policy;
|
||||
pub mod rule;
|
||||
|
||||
pub use cli::ExecPolicyCheckCommand;
|
||||
pub use execpolicycheck::ExecPolicyCheckCommand;
|
||||
pub use decision::Decision;
|
||||
pub use error::Error;
|
||||
pub use error::Result;
|
||||
|
||||
Reference in New Issue
Block a user