MCPcopy Index your code
hub / github.com/idank/explainshell / gen_hardlink_cmd

Function gen_hardlink_cmd

tools/loadtest.py:133–138  ·  view source on GitHub ↗

Simple touch+ln+ls pipeline (shorter; amznbot-style shape).

(rng: random.Random)

Source from the content-addressed store, hash-verified

131
132
133def gen_hardlink_cmd(rng: random.Random) -> str:
134 """Simple touch+ln+ls pipeline (shorter; amznbot-style shape)."""
135 to = _pick(TOUCH_VARIANTS, rng)
136 ln1, ln2 = _pick(LN_VARIANTS, rng), _pick(LN_VARIANTS, rng)
137 ls = _pick(LS_VARIANTS, rng)
138 return f"{to} datei; {ln1} datei hardlink; {ln2} -s datei softlink; {ls} -il *"
139
140
141BOT_TEMPLATES = [

Callers

nothing calls this directly

Calls 1

_pickFunction · 0.85

Tested by

no test coverage detected