summaryrefslogtreecommitdiff
path: root/Types/Command.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-01-05 20:40:31 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-01-05 23:11:06 -0400
commit47be4383b714320c9e3f49cc23315101fad5735b (patch)
tree3a43aa41c43693ab9b66cc1b53a0d6dc0e1fb49e /Types/Command.hs
parentcdcf0aac71bf6135d45b7f5d13342ed3d040596a (diff)
Command data structure tweaking
Diffstat (limited to 'Types/Command.hs')
-rw-r--r--Types/Command.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Types/Command.hs b/Types/Command.hs
index 5341a4054..3cabf7318 100644
--- a/Types/Command.hs
+++ b/Types/Command.hs
@@ -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. -}