1import System.Environment (getArgs, getProgName)
2import Control.Distributed.Process (NodeId, Process, liftIO)
3import Control.Distributed.Process.Node (initRemoteTable)
4import Control.Distributed.Process.Backend.SimpleLocalnet
6master :: Backend -> [NodeId] -> Process ()
7master backend slaves = do
8 liftIO . putStrLn $ "Slaves: " ++ show slaves
9 terminateAllSlaves backend
17 ["master", host, port] -> do
18 backend <- initializeBackend host port initRemoteTable
19 startMaster backend (master backend)
20 ["slave", host, port] -> do
21 backend <- initializeBackend host port initRemoteTable
24 putStrLn $ "usage: " ++ prog ++ " (master | slave) host port"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list