pub async fn record_command( truncate: bool, file_path: PathBuf, command: String, args: Vec<String>, ) -> Result<CommandInvocation>