simple-cmd

Simple String-based process commands

Latest on Hackage:0.2.2

See all snapshots simple-cmd appears in

BSD-3-Clause licensed by Jens Petersen
Maintained by [email protected]

Module documentation for 0.1.1

This version can be pinned in stack with:[email protected]:5a654140228124451641730f9d5e761d7f7a6a1f3e88c5ab7b190f2431134603,1350

Build Status Hackage

simple-cmd

Some simple String wrappers of readProcess, readProcessWithExitCode, rawSystem from the Haskell process library.

Usage

import SimpleCmd
cmd_ :: String -> [String] -> IO ()

outputs to stdout. For example

cmd_ "git" ["clone", url]

This can shortened to git_ "clone" [url].

cmd :: String -> [String] -> IO String

returns stdout as a String.

There are also cmdBool, cmdMaybe, cmdList, shell, and others.

Other examples:

gitBranch :: IO String
grep_ pat file :: IO Bool
sudo c args :: IO ()

See the library documentation for more details.

Changes

Revision history for simple-cmd

0.1.1 – 2018-10-02

  • cmdLines
  • Git: grepGitConfig
  • new Rpm: rpmspec

0.1.0.0 – 2018-09-13

  • Initial release, providing: cmd, cmd_, cmdBool, cmdMaybe, cmdStdIn, cmdlog, cmdN, cmdIgnoreErr, cmdQuiet, cmdSilent, cmdStdErr, egrep_, grep_, logMsg, removePrefix, removeStrictPrefix, removeSuffix, shell, shell_, sudo, (+-+)
  • A few git commands

Local Variables:

mode: text

End:

Used by 1 package in lts-12.14(full list with versions):