Documentation
¶
Overview ¶
Package nogh installs a refusing gh command first on a child shell's PATH. The child returns requested forge actions to its coordinator and uses git for branch transport where permitted. This shim makes that routing visible when the child invokes gh by name.
This is a command-routing aid, not a security boundary: an absolute path bypasses PATH lookup. Callers remain responsible for the child's permissions and credentials.
Index ¶
Constants ¶
View Source
const Name = "gh"
Name is the file the shim is written as.
View Source
const Refusal = "gh: REFUSED GitHub CLI is unavailable in this child shell; " +
"return the requested forge action in your report to the coordinator; use git for branch transport where permitted"
Refusal is the one line the refusing gh prints on stderr. It carries no single quote, so Script can quote it for sh as written.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.