MCPcopy Create free account
hub / github.com/ezyang/ghstack / jf

Method jf

src/ghstack/shell.py:303–314  ·  view source on GitHub ↗

Run a jf command. The returned stdout has trailing newlines stripped. Args: *args: Arguments to jf **kwargs: Any valid kwargs for sh()

(self, *args: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

301 return self._maybe_rstrip(self.sh(*(("hg",) + args), **kwargs))
302
303 def jf(self, *args: str, **kwargs: Any) -> _SHELL_RET:
304 """
305 Run a jf command. The returned stdout has trailing newlines stripped.
306
307 Args:
308 *args: Arguments to jf
309 **kwargs: Any valid kwargs for sh()
310 """
311
312 kwargs.setdefault("stdout", sys.stderr)
313
314 return self._maybe_rstrip(self.sh(*(("jf",) + args), **kwargs))
315
316 def test_tick(self) -> None:
317 """

Callers

nothing calls this directly

Calls 2

_maybe_rstripMethod · 0.95
shMethod · 0.95

Tested by

no test coverage detected