diff options
author | Joey Hess <joey@kitenet.net> | 2011-12-02 19:22:43 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-12-02 19:22:43 -0400 |
commit | b5930f6d076d266b337b415447f448fbb14d9ea3 (patch) | |
tree | 403231f25659cdf73cefbe3c14f5d56bf306a598 /Command | |
parent | f0cc42685e42a493c83eb85de02e61c54f69e4f0 (diff) |
add
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Dead.hs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Command/Dead.hs b/Command/Dead.hs new file mode 100644 index 000000000..192551e20 --- /dev/null +++ b/Command/Dead.hs @@ -0,0 +1,32 @@ +{- git-annex command + - + - Copyright 2011 Joey Hess <joey@kitenet.net> + - + - Licensed under the GNU GPL version 3 or higher. + -} + +module Command.Dead where + +import Common.Annex +import Command +import qualified Remote +import Logs.Trust + +def :: [Command] +def = [command "dead" (paramRepeating paramRemote) seek + "hide a lost repository"] + +seek :: [CommandSeek] +seek = [withWords start] + +start :: [String] -> CommandStart +start ws = do + let name = unwords ws + showStart "dead " name + u <- Remote.nameToUUID name + next $ perform u + +perform :: UUID -> CommandPerform +perform uuid = do + trustSet uuid DeadTrusted + next $ return True |