glirc-2.33.1: Console IRC client

Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Client.Commands.Exec

Contents

Description

This module renders the lines used in the channel mask list. A mask list can show channel bans, quiets, invites, and exceptions.

Synopsis

Exec command configuration

data ExecCmd Source #

Settings for /exec command.

When no network or channel are specified the output is sent to the client window.

When only a network is specified the output is sent as raw IRC commands to that network.

When only a channel is specified the output is sent as messages on the current network to the given channel.

When the network and channel are specified the output is sent as messages to the given channel on the given network.

Constructors

ExecCmd 

Fields

data Target a Source #

Constructors

Unspecified 
Current 
Specified a 
Instances
Functor Target Source # 
Instance details

Defined in Client.Commands.Exec

Methods

fmap :: (a -> b) -> Target a -> Target b #

(<$) :: a -> Target b -> Target a #

Eq a => Eq (Target a) Source # 
Instance details

Defined in Client.Commands.Exec

Methods

(==) :: Target a -> Target a -> Bool #

(/=) :: Target a -> Target a -> Bool #

Ord a => Ord (Target a) Source # 
Instance details

Defined in Client.Commands.Exec

Methods

compare :: Target a -> Target a -> Ordering #

(<) :: Target a -> Target a -> Bool #

(<=) :: Target a -> Target a -> Bool #

(>) :: Target a -> Target a -> Bool #

(>=) :: Target a -> Target a -> Bool #

max :: Target a -> Target a -> Target a #

min :: Target a -> Target a -> Target a #

Read a => Read (Target a) Source # 
Instance details

Defined in Client.Commands.Exec

Show a => Show (Target a) Source # 
Instance details

Defined in Client.Commands.Exec

Methods

showsPrec :: Int -> Target a -> ShowS #

show :: Target a -> String #

showList :: [Target a] -> ShowS #

Lenses

Operations

parseExecCmd Source #

Arguments

:: String

exec arguments

-> Either [String] ExecCmd

error or parsed command

Parse the arguments to /exec looking for various flags and the command and its arguments.

runExecCmd Source #

Arguments

:: ExecCmd

exec configuration

-> IO (Either [String] [String])

error lines or output lines

Execute the requested command synchronously and return the output.