runCommand -package:structured-cli -package:github-release -package:wai-app-static -package:xmonad-contrib is:exact -package:process -package:io-streams -package:cabal-install -package:hledger
Run an external command on the specified DotRepr
. Remember to
on the Handle
for the output
function if necessary.
If the command was unsuccessful, then a GraphvizException
For performance reasons, a temporary file is used to store the
generated Dot code. As such, this is only suitable for local commands.
Run command against the database and return its result
, and attempt to parse it into a valid value of
type plus a list of left-over arguments. The options
and arguments are then passed to the provided computation.
If parsing fails, this computation will print an error and call
If parsing succeeds, and the user has passed a --help
and the developer is using the default help flag definitions, then
this computation will print documentation and call exitSuccess
for details on subcommand support.
Run a command within the PlotM monad. Stderr stream is read
and decoded, while Stdout is ignored. Logging happens at the debug
level if the command succeeds, or at the error level if it does not