shellmet alternatives and similar packages
Based on the "Command Line" category.
Alternatively, view shellmet alternatives based on common mentions on social networks and blogs.
-
herms
:stew::fork_and_knife: A command-line manager for delicious kitchen recipes -
cli-extras
Miscellaneous utilities for building and working with command line interfaces -
cli
Command Line Interface Utility (Printing, Formatting, Options parsing) for Haskell -
otp-authenticator
OTP Authenticator (ala Google Authenticator) cli app -
optparse-applicative-simple
Simple command line interface arguments parser -
hnormalise
Log message normalisation tool producing structured JSON messages
Access the most powerful time series database as a service
Do you think we are missing an alternative of shellmet or a related project?
Popular Comparisons
README
shellmet
Out of the shell solution for scripting in Haskell. Shellmet provides an easy and convenient way to call shell commands from Haskell programs.
Usage example
This README contains the usage example of the shellmet
library. The example is
runnable. You can build and execute with the following command:
cabal run readme
Setting up
Since this tutorial is written using Literate Haskell, first, let's write all necessary pragmas and imports.
{-# LANGUAGE OverloadedStrings #-}
import Data.Semigroup ((<>))
import Shellmet (($|))
import qualified Data.Text as T
Simple scripting example
Below you can see how easy it is to interact with shell commands in Haskell:
main :: IO ()
main = do
"echo" ["Starting shellmet readme..."]
text <- "cat" $| ["README.md"]
let cnt = T.pack $ show $ length $ T.lines text
"echo" ["Number of lines in this README: " <> cnt]
And the output is:
โ echo 'Starting shellmet readme...'
Starting shellmet readme...
โ echo 'Number of lines in this README: 54'
Number of lines in this README: 54
*Note that all licence references and agreements mentioned in the shellmet README section above
are relevant to that project's source code only.