You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is being used in various places, such as revdep-scanner.
A new subproject inside the cabal-portage project is a good place for this (gentoo-utils?). It should include:
A common interface for running commands
A re-worked runOpaque using the common error-handling interface
A re-worked runTransparent using the common error-handling interface
A common interface for handling errors (just an example):
-- exits with a RunProcessException or else returns captured stdout and stderr
tryProcess -- better name?::Exceptione-- Nothing is passed to stdin=>Maybe (ConduitTByteStringByteStringIO()) -- extra stuff using stdout (useful for e.g. runTransparent)->Maybe (ConduitTByteStringByteStringIO()) -- extra stuff using stderr (useful for e.g. runTransparent)->Maybe (ExitCode->Lazy.Text->Lazy.Text->IO (MaybeRunProcessException)) -- tweak exception throwing->CreateProcess-- command to run, arguments, and extra settings->IO (EitherRunProcessException (Lazy.Text, Lazy.Text))
dataRunProcessException=RPE{rpeCP::CreateProcess
, rpeExitCode::ExitCode
, rpeStdout::Lazy.Text
, rpeStderr::Lazy.Text}
Should handle errors by displying the command that was run, the exit code, the captured stdout, and the captured stderr, along with any other exceptions thrown.
Convenience functions for running common commands, such as pquery, eix, and emerge
Convenience functions for running pquery and parsing the output to e.g. HashMaps
Orphan instances for portage-hs types (e.g. Hashable) to keep its dependency footprint low
The text was updated successfully, but these errors were encountered:
This is being used in various places, such as
revdep-scanner
.A new subproject inside the
cabal-portage
project is a good place for this (gentoo-utils
?). It should include:A common interface for running commands
A re-worked
runOpaque
using the common error-handling interfaceA re-worked
runTransparent
using the common error-handling interfaceA common interface for handling errors (just an example):
Should handle errors by displying the command that was run, the exit code, the captured stdout, and the captured stderr, along with any other exceptions thrown.
Convenience functions for running common commands, such as
pquery
,eix
, andemerge
Convenience functions for running
pquery
and parsing the output to e.g.HashMap
sOrphan instances for
portage-hs
types (e.g.Hashable
) to keep its dependency footprint lowThe text was updated successfully, but these errors were encountered: