Watch
0
0
Fork
You've already forked hyperhive
0

hive-forge: defer repo resolution to the accessor, not construction

This commit is contained in:
damocles 2026-09-02 15:18:56 +02:00 • committed by mara
commit fe7bf81d4a
14 changed files with 57 additions and 35 deletions

View file

@ -63,7 +63,7 @@ pub struct Args {
/// permission on the repo, token missing/invalid) and any I/O error from
/// writing the confirmation to stdout.
pub fn run(client: &Client, args: Args) -> Result<()> {
let repo = client.repo();
let repo = client.repo()?;
let (owner, name) = client.owner_repo()?;
let perm = args.permission.as_api();
client