1use std::ffi::OsString;
2
3use crate::{ApplyDiffArtifacts, CodexClient, CodexError, HelpCommandRequest};
4
5impl CodexClient {
6 pub async fn help(
8 &self,
9 request: HelpCommandRequest,
10 ) -> Result<ApplyDiffArtifacts, CodexError> {
11 let mut args: Vec<OsString> = request
12 .scope
13 .argv_prefix()
14 .iter()
15 .map(|value| OsString::from(*value))
16 .collect();
17 args.extend(request.command.into_iter().map(OsString::from));
18 self.run_simple_command_with_overrides(args, request.overrides)
19 .await
20 }
21}