pub struct GitLabAt<'a, R: ProcessRunner = JobRunner> { /* private fields */ }Expand description
A GitLab client with a working directory bound, so its project-scoped
methods drop the leading dir argument (glab.at(dir).mr_list()). Construct
one with GitLab::at.
Implementations§
Source§impl<'a, R: ProcessRunner> GitLabAt<'a, R>
impl<'a, R: ProcessRunner> GitLabAt<'a, R>
Sourcepub async fn run_raw(&self, args: &[String]) -> Result<ProcessResult<String>>
pub async fn run_raw(&self, args: &[String]) -> Result<ProcessResult<String>>
Bound form of GitLab’s run_raw.
Sourcepub async fn run_raw_args(&self, args: &[&str]) -> Result<ProcessResult<String>>
pub async fn run_raw_args(&self, args: &[&str]) -> Result<ProcessResult<String>>
Bound form of GitLab’s run_raw_args.
Sourcepub async fn auth_status(&self) -> Result<bool>
pub async fn auth_status(&self) -> Result<bool>
Bound form of GitLab’s auth_status.
Sourcepub async fn repo_view(&self) -> Result<Project>
pub async fn repo_view(&self) -> Result<Project>
Bound form of GitLab’s repo_view (with dir pre-bound).
Sourcepub async fn mr_list(&self) -> Result<Vec<MergeRequest>>
pub async fn mr_list(&self) -> Result<Vec<MergeRequest>>
Bound form of GitLab’s mr_list (with dir pre-bound).
Sourcepub async fn mr_view(&self, id: u64) -> Result<MergeRequest>
pub async fn mr_view(&self, id: u64) -> Result<MergeRequest>
Bound form of GitLab’s mr_view (with dir pre-bound).
Sourcepub async fn mr_create(&self, spec: MrCreate) -> Result<String>
pub async fn mr_create(&self, spec: MrCreate) -> Result<String>
Bound form of GitLab’s mr_create (with dir pre-bound).
Sourcepub async fn mr_merge(&self, id: u64, strategy: MergeStrategy) -> Result<()>
pub async fn mr_merge(&self, id: u64, strategy: MergeStrategy) -> Result<()>
Bound form of GitLab’s mr_merge (with dir pre-bound).
Sourcepub async fn mr_ready(&self, id: u64) -> Result<()>
pub async fn mr_ready(&self, id: u64) -> Result<()>
Bound form of GitLab’s mr_ready (with dir pre-bound).
Sourcepub async fn mr_close(&self, id: u64) -> Result<()>
pub async fn mr_close(&self, id: u64) -> Result<()>
Bound form of GitLab’s mr_close (with dir pre-bound).
Sourcepub async fn mr_checks(&self, id: u64) -> Result<CiStatus>
pub async fn mr_checks(&self, id: u64) -> Result<CiStatus>
Bound form of GitLab’s mr_checks (with dir pre-bound).
Sourcepub async fn issue_list(&self) -> Result<Vec<Issue>>
pub async fn issue_list(&self) -> Result<Vec<Issue>>
Bound form of GitLab’s issue_list (with dir pre-bound).
Sourcepub async fn issue_view(&self, number: u64) -> Result<Issue>
pub async fn issue_view(&self, number: u64) -> Result<Issue>
Bound form of GitLab’s issue_view (with dir pre-bound).
Sourcepub async fn issue_create(&self, title: &str, body: &str) -> Result<String>
pub async fn issue_create(&self, title: &str, body: &str) -> Result<String>
Bound form of GitLab’s issue_create (with dir pre-bound).