summaryrefslogtreecommitdiff
path: root/Types
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-03-24 18:28:21 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-03-24 18:28:21 -0400
commit9ad09558eb6c9f7ed651168a030e26bc5698c1b8 (patch)
tree25594af86475e8f358d2409e98e72992a633b524 /Types
parent12cd5a673b59494db918df21272dd77091346d05 (diff)
add section metadata to all commands
Not yet used .. mindless train work.
Diffstat (limited to 'Types')
-rw-r--r--Types/Command.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Types/Command.hs b/Types/Command.hs
index b652bdad5..1d64c16d1 100644
--- a/Types/Command.hs
+++ b/Types/Command.hs
@@ -42,6 +42,7 @@ data Command = Command
, cmdname :: String
, cmdparamdesc :: String -- description of params for usage
, cmdseek :: [CommandSeek] -- seek stage
+ , cmdsection :: CommandSection
, cmddesc :: String -- description of command for usage
}
@@ -55,3 +56,13 @@ instance Eq Command where
{- Order commands by name -}
instance Ord Command where
compare = comparing cmdname
+
+{- The same sections are listed in doc/git-annex.mdwn -}
+data CommandSection
+ = SectionCommon
+ | SectionSetup
+ | SectionMaintenance
+ | SectionQuery
+ | SectionUtility
+ | SectionPlumbing
+ deriving (Eq, Ord, Enum, Bounded)