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-08-17 18:17:12 +00:00
|
|
|
command = [repoCommand "configlist" paramNothing seek
|
2010-12-31 00:08:22 +00:00
|
|
|
"outputs relevant git configuration"]
|
|
|
|
|
|
|
|
seek :: [CommandSeek]
|
|
|
|
seek = [withNothing start]
|
|
|
|
|
2011-09-15 20:50:49 +00:00
|
|
|
start :: CommandStart
|
2010-12-31 00:08:22 +00:00
|
|
|
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
|