Moved list of backends and remote types from status to version command.
This commit is contained in:
parent
a05b763b01
commit
29385dc393
3 changed files with 20 additions and 20 deletions
|
@ -17,8 +17,6 @@ import Data.Ord
|
|||
import System.PosixCompat.Files
|
||||
|
||||
import Common.Annex
|
||||
import qualified Types.Backend as B
|
||||
import qualified Types.Remote as R
|
||||
import qualified Remote
|
||||
import qualified Command.Unused
|
||||
import qualified Git
|
||||
|
@ -28,7 +26,6 @@ import Utility.DataUnits
|
|||
import Utility.DiskFree
|
||||
import Annex.Content
|
||||
import Types.Key
|
||||
import Backend
|
||||
import Logs.UUID
|
||||
import Logs.Trust
|
||||
import Remote
|
||||
|
@ -116,9 +113,7 @@ selStats fast_stats slow_stats = do
|
|||
-}
|
||||
global_fast_stats :: [Stat]
|
||||
global_fast_stats =
|
||||
[ supported_backends
|
||||
, supported_remote_types
|
||||
, repository_mode
|
||||
[ repository_mode
|
||||
, remote_list Trusted
|
||||
, remote_list SemiTrusted
|
||||
, remote_list UnTrusted
|
||||
|
@ -171,14 +166,6 @@ showStat s = maybe noop calc =<< s
|
|||
(lift . showHeader) desc
|
||||
lift . showRaw =<< a
|
||||
|
||||
supported_backends :: Stat
|
||||
supported_backends = stat "supported backends" $ json unwords $
|
||||
return $ map B.name Backend.list
|
||||
|
||||
supported_remote_types :: Stat
|
||||
supported_remote_types = stat "supported remote types" $ json unwords $
|
||||
return $ map R.typename Remote.remoteTypes
|
||||
|
||||
repository_mode :: Stat
|
||||
repository_mode = stat "repository mode" $ json id $ lift $
|
||||
ifM isDirect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue