{-# LANGUAGE OverloadedStrings #-}

-- | Commands that only work on Unix.
module Shelly.Unix
  ( kill
  ) where

import Shelly
import qualified Data.Text as T

kill :: Int -> Sh ()
kill :: Int -> Sh ()
kill Int
pid = FilePath -> [Text] -> Sh ()
run_ FilePath
"kill" [Text
"-15", FilePath -> Text
T.pack (FilePath -> Text) -> FilePath -> Text
forall a b. (a -> b) -> a -> b
$ Int -> FilePath
forall a. Show a => a -> FilePath
show Int
pid]