module Darcs.UI.Commands.Show ( showCommand ) where
import Darcs.Prelude
import Darcs.UI.Commands ( DarcsCommand(..)
, normalCommand
, amInRepository
)
import Darcs.UI.Commands.ShowAuthors ( showAuthors )
import Darcs.UI.Commands.ShowContents ( showContents )
import Darcs.UI.Commands.ShowDependencies ( showDeps )
import Darcs.UI.Commands.ShowFiles ( showFiles )
import Darcs.UI.Commands.ShowTags ( showTags )
import Darcs.UI.Commands.ShowRepo ( showRepo )
import Darcs.UI.Commands.ShowIndex ( showIndex, showPristine )
import Darcs.UI.Commands.ShowPatchIndex ( showPatchIndex )
import Darcs.Util.Printer ( Doc, formatWords )
showDescription :: String
showDescription = "Show information about the given repository."
showHelp :: Doc
showHelp = formatWords
[ "Display various information about a repository. See description of the"
, "subcommands for details."
]
showCommand :: DarcsCommand
showCommand = SuperCommand
{ commandProgramName = "darcs"
, commandName = "show"
, commandHelp = showHelp
, commandDescription = showDescription
, commandPrereq = amInRepository
, commandSubCommands =
[ normalCommand showContents
, normalCommand showDeps
, normalCommand showFiles
, normalCommand showIndex
, normalCommand showPristine
, normalCommand showRepo
, normalCommand showAuthors
, normalCommand showTags
, normalCommand showPatchIndex ]
}