Command data structure tweaking
This commit is contained in:
parent
cdcf0aac71
commit
47be4383b7
3 changed files with 10 additions and 8 deletions
|
@ -33,12 +33,12 @@ type CommandCleanup = Annex Bool
|
|||
|
||||
{- A command is defined by specifying these things. -}
|
||||
data Command = Command {
|
||||
cmdnorepo :: Maybe (IO ()),
|
||||
cmdcheck :: [CommandCheck],
|
||||
cmdnorepo :: Maybe (IO ()), -- an action to run when not in a repo
|
||||
cmdcheck :: [CommandCheck], -- check stage
|
||||
cmdname :: String,
|
||||
cmdparams :: String,
|
||||
cmdseek :: [CommandSeek],
|
||||
cmddesc :: String
|
||||
cmdparamdesc :: String, -- description of params for usage
|
||||
cmdseek :: [CommandSeek], -- seek stage
|
||||
cmddesc :: String -- description of command for usage
|
||||
}
|
||||
|
||||
{- CommandCheck functions can be compared using their unique id. -}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue