pub struct Gh { /* private fields */ }Expand description
Wrapper for the gh tool.
This tool is already available and authenticated when running running code in a Github Actions workflow.
Implementations§
Source§impl Gh
impl Gh
Sourcepub fn with_exe(exe: PathBuf) -> Self
pub fn with_exe(exe: PathBuf) -> Self
Create a new Gh using exe as the path to the gh executable.
Sourcepub fn create_release(&self, opt: CreateRelease) -> Result<(), RunCommandError>
pub fn create_release(&self, opt: CreateRelease) -> Result<(), RunCommandError>
Create a new release.
Sourcepub fn does_release_exist(&self, tag: &str) -> Result<bool, RunCommandError>
pub fn does_release_exist(&self, tag: &str) -> Result<bool, RunCommandError>
Check if a release for the given tag exists.
Trait Implementations§
Source§impl Ord for Gh
impl Ord for Gh
Source§impl PartialOrd for Gh
impl PartialOrd for Gh
impl Eq for Gh
impl StructuralPartialEq for Gh
Auto Trait Implementations§
impl Freeze for Gh
impl RefUnwindSafe for Gh
impl Send for Gh
impl Sync for Gh
impl Unpin for Gh
impl UnwindSafe for Gh
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