Skip to main content

gh_command_line

Function gh_command_line 

Source
pub fn gh_command_line(program: &OsStr, args: &[OsString]) -> String
Expand description

Build the human-readable command line stored on the Command Logs transcript (issue #226) for a gh invocation: the program’s file name (so a GWM_GH=/usr/bin/gh override still reads as gh issue view … rather than leaking the full path) followed by the resolved args. Kept pure and pub so its argv format is unit-testable without spawning gh (which CI runners do not have).