pub struct GhProcessRunner { /* private fields */ }Expand description
Real fixed-argv GitHub CLI process runner.
Implementations§
Source§impl GhProcessRunner
impl GhProcessRunner
Sourcepub fn new(
executable: impl AsRef<Path>,
neutral_working_directory: impl AsRef<Path>,
authentication: GhAuthentication,
) -> Result<Self, TransportConfigError>
pub fn new( executable: impl AsRef<Path>, neutral_working_directory: impl AsRef<Path>, authentication: GhAuthentication, ) -> Result<Self, TransportConfigError>
Validate the executable, neutral working directory, and auth source.
§Errors
Rejects non-absolute, missing, or unsuitable local paths.
Trait Implementations§
Source§impl Clone for GhProcessRunner
impl Clone for GhProcessRunner
Source§impl Debug for GhProcessRunner
impl Debug for GhProcessRunner
Source§impl GhRunner for GhProcessRunner
impl GhRunner for GhProcessRunner
Source§fn execute(&mut self, request: &GhRequest) -> Result<Vec<u8>, GhExecutionError>
fn execute(&mut self, request: &GhRequest) -> Result<Vec<u8>, GhExecutionError>
Execute one request and return bounded stdout bytes. Read more
Source§fn workflow_dispatch_client_factory(
&self,
) -> Result<Box<dyn GithubWorkflowDispatchHttpClientFactory>, GhExecutionError>
fn workflow_dispatch_client_factory( &self, ) -> Result<Box<dyn GithubWorkflowDispatchHttpClientFactory>, GhExecutionError>
Clone a lazy, credential-owning factory for one direct workflow dispatch client. Read more
Source§impl GhSecretRunner for GhProcessRunner
impl GhSecretRunner for GhProcessRunner
Source§fn set_environment_secret(
&mut self,
request: &EnvironmentSecretWriteRequest,
value: &SecretBytes,
timeout: Duration,
) -> Result<(), GhExecutionError>
fn set_environment_secret( &mut self, request: &EnvironmentSecretWriteRequest, value: &SecretBytes, timeout: Duration, ) -> Result<(), GhExecutionError>
Send the value only through child-process stdin. Read more
Auto Trait Implementations§
impl Freeze for GhProcessRunner
impl RefUnwindSafe for GhProcessRunner
impl Send for GhProcessRunner
impl Sync for GhProcessRunner
impl Unpin for GhProcessRunner
impl UnsafeUnpin for GhProcessRunner
impl UnwindSafe for GhProcessRunner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more