hive-forge: add body to pr show --json, error --json on six verbs that silently ignored it
This commit is contained in:
parent
48ac4ac423
commit
e0ad3a567b
6 changed files with 25 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
//! `branches [pattern] [repo]` — list branches, optionally filtered.
|
||||
|
||||
use anyhow::Result;
|
||||
use anyhow::{Result, bail};
|
||||
use clap::Args as ClapArgs;
|
||||
|
||||
use crate::client::Client;
|
||||
|
|
@ -12,6 +12,11 @@ pub struct Args {
|
|||
}
|
||||
|
||||
pub fn run(client: &Client, args: Args) -> Result<()> {
|
||||
if client.json_mode() {
|
||||
bail!(
|
||||
"hive-forge branches: --json is not supported for this verb, only the plain name list"
|
||||
);
|
||||
}
|
||||
let (owner, name) = client.owner_repo()?;
|
||||
let (_, branches) = client
|
||||
.api()
|
||||
|
|
|
|||
Loading…
Reference in a new issue