2010-12-31 00:08:22 +00:00
|
|
|
{- git-annex command
|
|
|
|
-
|
|
|
|
- Copyright 2010 Joey Hess <joey@kitenet.net>
|
|
|
|
-
|
|
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
module Command.ConfigList where
|
|
|
|
|
|
|
|
import Control.Monad.State (liftIO)
|
|
|
|
|
|
|
|
import Annex
|
|
|
|
import Command
|
2011-01-04 21:34:14 +00:00
|
|
|
import UUID
|
2010-12-31 00:08:22 +00:00
|
|
|
|
|
|
|
command :: [Command]
|
2011-03-19 22:58:49 +00:00
|
|
|
command = [standaloneCommand "configlist" paramNothing seek
|
2010-12-31 00:08:22 +00:00
|
|
|
"outputs relevant git configuration"]
|
|
|
|
|
|
|
|
seek :: [CommandSeek]
|
|
|
|
seek = [withNothing start]
|
|
|
|
|
|
|
|
start :: CommandStartNothing
|
|
|
|
start = do
|
|
|
|
g <- Annex.gitRepo
|
2011-01-04 21:34:14 +00:00
|
|
|
u <- getUUID g
|
|
|
|
liftIO $ putStrLn $ "annex.uuid=" ++ u
|
2011-05-15 06:02:46 +00:00
|
|
|
stop
|