Watch
0
0
Fork
You've already forked hyperhive
0

docs, prompts, hive-forge: stop handing readers the renamed verbs

docs/tools/forge.md already listed the nine renamed verbs as removed, then
used them ~30 more times in pasteable blocks. Sweeps every occurrence a
reader would type, including three runtime messages that told the user to
run a verb the same binary rejects.

The renamed-verb list itself keeps the old names; it is what documents them.

Refs #4155
This commit is contained in:
atlas 2026-09-10 15:56:20 +02:00 • committed by mara
commit 55f01942a2

View file

@ -1,4 +1,4 @@
//! `pr-create --title <t> --head <branch> [--base <b>] [body sources]
//! `pr create --title <t> --head <branch> [--base <b>] [body sources]
//! [--draft] [--push] [--remote <name>] [repo]` — create a PR. Prints
//! the PR URL.
//!
@ -71,7 +71,7 @@ pub struct Args {
/// Label name to attach, repeatable (for example `--label area/ops --label
/// type/bug`). Same spelling `labels add` accepts — an unresolved name
/// errors out rather than silently attaching fewer labels than asked
/// for. In `--agit` mode `pr-create` applies this as a follow-up call
/// for. In `--agit` mode `pr create` applies this as a follow-up call
/// once it learns the PR number (the `AGit` push itself has no label
/// field), so it silently skips them (not a label-resolution error) if
/// it couldn't parse the PR URL back out of the push output — same
@ -146,7 +146,7 @@ pub fn run(client: &Client, args: Args) -> Result<()> {
/// single-line body still rides along as a push option (it's guaranteed
/// to land even if we can't parse the PR URL back out); a multi-line
/// body is pushed title-only and then set on the resulting PR via a REST
/// PATCH, mirroring the manual `pr-create --title …` + `issue-edit
/// PATCH, mirroring the manual `pr create --title …` + `issue edit
/// --body-file` two-step.
fn agit_create(client: &Client, args: &Args, body: &str) -> Result<()> {
let remote = args.remote.as_deref().unwrap_or("origin");
@ -192,7 +192,7 @@ fn agit_create(client: &Client, args: &Args, body: &str) -> Result<()> {
if deferred_body {
eprintln!(
"warning: multi-line body NOT set — PR URL not parsed, so it could \
not be PATCHed. Set it manually: hive-forge issue-edit <pr#> --body-file -"
not be PATCHed. Set it manually: hive-forge issue edit <pr#> --body-file -"
);
}
println!(
@ -224,7 +224,7 @@ fn agit_create(client: &Client, args: &Args, body: &str) -> Result<()> {
} else {
eprintln!(
"warning: multi-line body NOT set — could not parse PR number from {url}. \
Set it manually: hive-forge issue-edit <pr#> --body-file -"
Set it manually: hive-forge issue edit <pr#> --body-file -"
);
}
}