formatting
This commit is contained in:
		
					parent
					
						
							
								d0cf4b2dd4
							
						
					
				
			
			
				commit
				
					
						c1c64ec76c
					
				
			
		
					 4 changed files with 16 additions and 23 deletions
				
			
		| 
						 | 
					@ -17,6 +17,8 @@ import Annex.Ssh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import qualified Command.Add
 | 
					import qualified Command.Add
 | 
				
			||||||
import qualified Command.Unannex
 | 
					import qualified Command.Unannex
 | 
				
			||||||
 | 
					import qualified Command.Fsck
 | 
				
			||||||
 | 
					{-
 | 
				
			||||||
import qualified Command.Drop
 | 
					import qualified Command.Drop
 | 
				
			||||||
import qualified Command.Move
 | 
					import qualified Command.Move
 | 
				
			||||||
import qualified Command.Copy
 | 
					import qualified Command.Copy
 | 
				
			||||||
| 
						 | 
					@ -46,7 +48,6 @@ import qualified Command.Init
 | 
				
			||||||
import qualified Command.Describe
 | 
					import qualified Command.Describe
 | 
				
			||||||
import qualified Command.InitRemote
 | 
					import qualified Command.InitRemote
 | 
				
			||||||
import qualified Command.EnableRemote
 | 
					import qualified Command.EnableRemote
 | 
				
			||||||
import qualified Command.Fsck
 | 
					 | 
				
			||||||
import qualified Command.Expire
 | 
					import qualified Command.Expire
 | 
				
			||||||
import qualified Command.Repair
 | 
					import qualified Command.Repair
 | 
				
			||||||
import qualified Command.Unused
 | 
					import qualified Command.Unused
 | 
				
			||||||
| 
						 | 
					@ -116,10 +117,13 @@ import qualified Command.TestRemote
 | 
				
			||||||
#ifdef WITH_EKG
 | 
					#ifdef WITH_EKG
 | 
				
			||||||
import System.Remote.Monitoring
 | 
					import System.Remote.Monitoring
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					-}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cmds :: [Command]
 | 
					cmds :: [Command]
 | 
				
			||||||
cmds = 
 | 
					cmds = 
 | 
				
			||||||
	[ Command.Add.cmd
 | 
						[ Command.Add.cmd
 | 
				
			||||||
 | 
						, Command.Fsck.cmd
 | 
				
			||||||
 | 
					{-
 | 
				
			||||||
	, Command.Get.cmd
 | 
						, Command.Get.cmd
 | 
				
			||||||
	, Command.Drop.cmd
 | 
						, Command.Drop.cmd
 | 
				
			||||||
	, Command.Move.cmd
 | 
						, Command.Move.cmd
 | 
				
			||||||
| 
						 | 
					@ -176,7 +180,6 @@ cmds =
 | 
				
			||||||
	, Command.VPop.cmd
 | 
						, Command.VPop.cmd
 | 
				
			||||||
	, Command.VCycle.cmd
 | 
						, Command.VCycle.cmd
 | 
				
			||||||
	, Command.Fix.cmd
 | 
						, Command.Fix.cmd
 | 
				
			||||||
	, Command.Fsck.cmd
 | 
					 | 
				
			||||||
	, Command.Expire.cmd
 | 
						, Command.Expire.cmd
 | 
				
			||||||
	, Command.Repair.cmd
 | 
						, Command.Repair.cmd
 | 
				
			||||||
	, Command.Unused.cmd
 | 
						, Command.Unused.cmd
 | 
				
			||||||
| 
						 | 
					@ -218,6 +221,7 @@ cmds =
 | 
				
			||||||
	, Command.FuzzTest.cmd
 | 
						, Command.FuzzTest.cmd
 | 
				
			||||||
	, Command.TestRemote.cmd
 | 
						, Command.TestRemote.cmd
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					-}
 | 
				
			||||||
	]
 | 
						]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
header :: String
 | 
					header :: String
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -71,23 +71,20 @@ parseKeyOptions allowincomplete = KeyOptions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
parseAllKeysOption :: Parser Bool
 | 
					parseAllKeysOption :: Parser Bool
 | 
				
			||||||
parseAllKeysOption = switch
 | 
					parseAllKeysOption = switch
 | 
				
			||||||
	( long "all"
 | 
						( long "all" <> short 'A'
 | 
				
			||||||
	<> short 'A'
 | 
					 | 
				
			||||||
	<> help "operate on all versions of all files"
 | 
						<> help "operate on all versions of all files"
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
parseUnusedKeysOption :: Parser Bool
 | 
					parseUnusedKeysOption :: Parser Bool
 | 
				
			||||||
parseUnusedKeysOption = switch
 | 
					parseUnusedKeysOption = switch
 | 
				
			||||||
	( long "unused"
 | 
						( long "unused" <> short 'U'
 | 
				
			||||||
	<> short 'U'
 | 
					 | 
				
			||||||
	<> help "operate on files found by last run of git-annex unused"
 | 
						<> help "operate on files found by last run of git-annex unused"
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
parseSpecificKeyOption :: Parser (Maybe Key)
 | 
					parseSpecificKeyOption :: Parser (Maybe Key)
 | 
				
			||||||
parseSpecificKeyOption = optional $ option (str >>= parseKey)
 | 
					parseSpecificKeyOption = optional $ option (str >>= parseKey)
 | 
				
			||||||
	( long "key"
 | 
						( long "key" <> metavar paramKey
 | 
				
			||||||
	<> help "operate on specified key"
 | 
						<> help "operate on specified key"
 | 
				
			||||||
	<> metavar paramKey
 | 
					 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
parseKey :: Monad m => String -> m Key
 | 
					parseKey :: Monad m => String -> m Key
 | 
				
			||||||
| 
						 | 
					@ -193,8 +190,7 @@ autoOption = flagOption ['a'] "auto" "automatic mode"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
parseAutoOption :: Parser Bool
 | 
					parseAutoOption :: Parser Bool
 | 
				
			||||||
parseAutoOption = switch
 | 
					parseAutoOption = switch
 | 
				
			||||||
	( long "auto"
 | 
						( long "auto" <> short 'a'
 | 
				
			||||||
	<> short 'a'
 | 
					 | 
				
			||||||
	<> help "automatic mode"
 | 
						<> help "automatic mode"
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,10 +47,8 @@ optParser desc = DropOptions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
parseDropFromOption :: Parser (Maybe RemoteName)
 | 
					parseDropFromOption :: Parser (Maybe RemoteName)
 | 
				
			||||||
parseDropFromOption = optional $ strOption
 | 
					parseDropFromOption = optional $ strOption
 | 
				
			||||||
        ( long "from"
 | 
						( long "from" <> short 'f' <> metavar paramRemote
 | 
				
			||||||
        <> short 'f'
 | 
						<> help "drop content from a remote"
 | 
				
			||||||
	<> metavar paramRemote
 | 
					 | 
				
			||||||
        <> help "drop content from a remote"
 | 
					 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
seek :: DropOptions -> CommandSeek
 | 
					seek :: DropOptions -> CommandSeek
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -60,24 +60,19 @@ optParser :: CmdParamsDesc -> Parser FsckOptions
 | 
				
			||||||
optParser desc = FsckOptions
 | 
					optParser desc = FsckOptions
 | 
				
			||||||
	<$> cmdParams desc
 | 
						<$> cmdParams desc
 | 
				
			||||||
	<*> optional (strOption 
 | 
						<*> optional (strOption 
 | 
				
			||||||
		( long "from"
 | 
							( long "from" <> short 'f' <> metavar paramRemote 
 | 
				
			||||||
		<> short 'f'
 | 
					 | 
				
			||||||
		<> metavar paramRemote
 | 
					 | 
				
			||||||
		<> help "check remote"
 | 
							<> help "check remote"
 | 
				
			||||||
		))
 | 
							))
 | 
				
			||||||
	<*> switch
 | 
						<*> switch
 | 
				
			||||||
		( long "incremental"
 | 
							( long "incremental" <> short 'S'
 | 
				
			||||||
		<> short 'S'
 | 
					 | 
				
			||||||
		<> help "start an incremental fsck"
 | 
							<> help "start an incremental fsck"
 | 
				
			||||||
		)
 | 
							)
 | 
				
			||||||
	<*> switch
 | 
						<*> switch
 | 
				
			||||||
		( long "more"
 | 
							( long "more" <> short 'm'
 | 
				
			||||||
		<> short 'm'
 | 
					 | 
				
			||||||
		<> help "continue an incremental fsck"
 | 
							<> help "continue an incremental fsck"
 | 
				
			||||||
		)
 | 
							)
 | 
				
			||||||
	<*> optional (option (str >>= parseDuration)
 | 
						<*> optional (option (str >>= parseDuration)
 | 
				
			||||||
		( long "incremental-schedule"
 | 
							( long "incremental-schedule" <> metavar paramTime
 | 
				
			||||||
		<> metavar paramTime
 | 
					 | 
				
			||||||
		<> help "schedule incremental fscking"
 | 
							<> help "schedule incremental fscking"
 | 
				
			||||||
		))
 | 
							))
 | 
				
			||||||
	<*> parseKeyOptions False
 | 
						<*> parseKeyOptions False
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue