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
|
|
@ -39,6 +39,9 @@ pub struct Args {
|
|||
/// Returns an error if the `git clone` shellout fails (bad repo, auth
|
||||
/// rejected, network) or the destination can't be derived.
|
||||
pub fn run(client: &Client, args: Args) -> Result<()> {
|
||||
if client.json_mode() {
|
||||
bail!("hive-forge clone: --json is not supported for this verb, only the destination path");
|
||||
}
|
||||
let repo = client.repo()?;
|
||||
let dest = match args.dest {
|
||||
Some(d) => d,
|
||||
|
|
|
|||
Loading…
Reference in a new issue