Skip to content

cmd

cmd documentation

footman._stubs.cmd.Cmd

Bases: Tool

__call__

__call__(command: str, /, **flags: Any) -> Result

Run a command string in the Windows command processor — cmd /c "<command>".

A real shell: pipes, redirects, and %VAR% all work. Windows only. Reach for this when you deliberately want cmd; run("…") stays shell-free, and run(shell="cmd", …) is the ergonomic front door.

Parameters:

Name Type Description Default
command str

the command line to run in cmd.

required