get_repo_view_field

Function get_repo_view_field 

Source
pub fn get_repo_view_field(field: &RepoViewField) -> Result<String>
Expand description

Return the specified repository field via gh repo view.

Invokes: gh repo view --json <field> --jq .<field>.

§Errors

  • Spawning or executing the gh repo view command fails.
  • Command exits with non‑zero status.
  • Output is not valid UTF‑8.