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