doh't use "def" for command definitions, it conflicts with Data.Default.def
This commit is contained in:
parent
db9121ecee
commit
59f88558d5
86 changed files with 267 additions and 267 deletions
|
@ -107,91 +107,91 @@ import System.Remote.Monitoring
|
|||
|
||||
cmds :: [Command]
|
||||
cmds = concat
|
||||
[ Command.Add.def
|
||||
, Command.Get.def
|
||||
, Command.Drop.def
|
||||
, Command.Move.def
|
||||
, Command.Copy.def
|
||||
, Command.Unlock.def
|
||||
, Command.Lock.def
|
||||
, Command.Sync.def
|
||||
, Command.Mirror.def
|
||||
, Command.AddUrl.def
|
||||
[ Command.Add.cmd
|
||||
, Command.Get.cmd
|
||||
, Command.Drop.cmd
|
||||
, Command.Move.cmd
|
||||
, Command.Copy.cmd
|
||||
, Command.Unlock.cmd
|
||||
, Command.Lock.cmd
|
||||
, Command.Sync.cmd
|
||||
, Command.Mirror.cmd
|
||||
, Command.AddUrl.cmd
|
||||
#ifdef WITH_FEED
|
||||
, Command.ImportFeed.def
|
||||
, Command.ImportFeed.cmd
|
||||
#endif
|
||||
, Command.RmUrl.def
|
||||
, Command.Import.def
|
||||
, Command.Init.def
|
||||
, Command.Describe.def
|
||||
, Command.InitRemote.def
|
||||
, Command.EnableRemote.def
|
||||
, Command.Reinject.def
|
||||
, Command.Unannex.def
|
||||
, Command.Uninit.def
|
||||
, Command.Reinit.def
|
||||
, Command.PreCommit.def
|
||||
, Command.NumCopies.def
|
||||
, Command.Trust.def
|
||||
, Command.Untrust.def
|
||||
, Command.Semitrust.def
|
||||
, Command.Dead.def
|
||||
, Command.Group.def
|
||||
, Command.Wanted.def
|
||||
, Command.Schedule.def
|
||||
, Command.Ungroup.def
|
||||
, Command.Vicfg.def
|
||||
, Command.LookupKey.def
|
||||
, Command.ExamineKey.def
|
||||
, Command.FromKey.def
|
||||
, Command.DropKey.def
|
||||
, Command.TransferKey.def
|
||||
, Command.TransferKeys.def
|
||||
, Command.ReKey.def
|
||||
, Command.MetaData.def
|
||||
, Command.View.def
|
||||
, Command.VAdd.def
|
||||
, Command.VFilter.def
|
||||
, Command.VPop.def
|
||||
, Command.VCycle.def
|
||||
, Command.Fix.def
|
||||
, Command.Fsck.def
|
||||
, Command.Repair.def
|
||||
, Command.Unused.def
|
||||
, Command.DropUnused.def
|
||||
, Command.AddUnused.def
|
||||
, Command.Find.def
|
||||
, Command.FindRef.def
|
||||
, Command.Whereis.def
|
||||
, Command.List.def
|
||||
, Command.Log.def
|
||||
, Command.Merge.def
|
||||
, Command.ResolveMerge.def
|
||||
, Command.Info.def
|
||||
, Command.Status.def
|
||||
, Command.Migrate.def
|
||||
, Command.Map.def
|
||||
, Command.Direct.def
|
||||
, Command.Indirect.def
|
||||
, Command.Upgrade.def
|
||||
, Command.Forget.def
|
||||
, Command.Version.def
|
||||
, Command.Help.def
|
||||
, Command.RmUrl.cmd
|
||||
, Command.Import.cmd
|
||||
, Command.Init.cmd
|
||||
, Command.Describe.cmd
|
||||
, Command.InitRemote.cmd
|
||||
, Command.EnableRemote.cmd
|
||||
, Command.Reinject.cmd
|
||||
, Command.Unannex.cmd
|
||||
, Command.Uninit.cmd
|
||||
, Command.Reinit.cmd
|
||||
, Command.PreCommit.cmd
|
||||
, Command.NumCopies.cmd
|
||||
, Command.Trust.cmd
|
||||
, Command.Untrust.cmd
|
||||
, Command.Semitrust.cmd
|
||||
, Command.Dead.cmd
|
||||
, Command.Group.cmd
|
||||
, Command.Wanted.cmd
|
||||
, Command.Schedule.cmd
|
||||
, Command.Ungroup.cmd
|
||||
, Command.Vicfg.cmd
|
||||
, Command.LookupKey.cmd
|
||||
, Command.ExamineKey.cmd
|
||||
, Command.FromKey.cmd
|
||||
, Command.DropKey.cmd
|
||||
, Command.TransferKey.cmd
|
||||
, Command.TransferKeys.cmd
|
||||
, Command.ReKey.cmd
|
||||
, Command.MetaData.cmd
|
||||
, Command.View.cmd
|
||||
, Command.VAdd.cmd
|
||||
, Command.VFilter.cmd
|
||||
, Command.VPop.cmd
|
||||
, Command.VCycle.cmd
|
||||
, Command.Fix.cmd
|
||||
, Command.Fsck.cmd
|
||||
, Command.Repair.cmd
|
||||
, Command.Unused.cmd
|
||||
, Command.DropUnused.cmd
|
||||
, Command.AddUnused.cmd
|
||||
, Command.Find.cmd
|
||||
, Command.FindRef.cmd
|
||||
, Command.Whereis.cmd
|
||||
, Command.List.cmd
|
||||
, Command.Log.cmd
|
||||
, Command.Merge.cmd
|
||||
, Command.ResolveMerge.cmd
|
||||
, Command.Info.cmd
|
||||
, Command.Status.cmd
|
||||
, Command.Migrate.cmd
|
||||
, Command.Map.cmd
|
||||
, Command.Direct.cmd
|
||||
, Command.Indirect.cmd
|
||||
, Command.Upgrade.cmd
|
||||
, Command.Forget.cmd
|
||||
, Command.Version.cmd
|
||||
, Command.Help.cmd
|
||||
#ifdef WITH_ASSISTANT
|
||||
, Command.Watch.def
|
||||
, Command.Assistant.def
|
||||
, Command.Watch.cmd
|
||||
, Command.Assistant.cmd
|
||||
#ifdef WITH_WEBAPP
|
||||
, Command.WebApp.def
|
||||
, Command.WebApp.cmd
|
||||
#endif
|
||||
#ifdef WITH_XMPP
|
||||
, Command.XMPPGit.def
|
||||
, Command.XMPPGit.cmd
|
||||
#endif
|
||||
, Command.RemoteDaemon.def
|
||||
, Command.RemoteDaemon.cmd
|
||||
#endif
|
||||
, Command.Test.def
|
||||
, Command.Test.cmd
|
||||
#ifdef WITH_TESTSUITE
|
||||
, Command.FuzzTest.def
|
||||
, Command.TestRemote.def
|
||||
, Command.FuzzTest.cmd
|
||||
, Command.TestRemote.cmd
|
||||
#endif
|
||||
]
|
||||
|
||||
|
|
|
@ -34,19 +34,19 @@ import qualified Command.GCryptSetup
|
|||
|
||||
cmds_readonly :: [Command]
|
||||
cmds_readonly = concat
|
||||
[ gitAnnexShellCheck Command.ConfigList.def
|
||||
, gitAnnexShellCheck Command.InAnnex.def
|
||||
, gitAnnexShellCheck Command.SendKey.def
|
||||
, gitAnnexShellCheck Command.TransferInfo.def
|
||||
, gitAnnexShellCheck Command.NotifyChanges.def
|
||||
[ gitAnnexShellCheck Command.ConfigList.cmd
|
||||
, gitAnnexShellCheck Command.InAnnex.cmd
|
||||
, gitAnnexShellCheck Command.SendKey.cmd
|
||||
, gitAnnexShellCheck Command.TransferInfo.cmd
|
||||
, gitAnnexShellCheck Command.NotifyChanges.cmd
|
||||
]
|
||||
|
||||
cmds_notreadonly :: [Command]
|
||||
cmds_notreadonly = concat
|
||||
[ gitAnnexShellCheck Command.RecvKey.def
|
||||
, gitAnnexShellCheck Command.DropKey.def
|
||||
, gitAnnexShellCheck Command.Commit.def
|
||||
, Command.GCryptSetup.def
|
||||
[ gitAnnexShellCheck Command.RecvKey.cmd
|
||||
, gitAnnexShellCheck Command.DropKey.cmd
|
||||
, gitAnnexShellCheck Command.Commit.cmd
|
||||
, Command.GCryptSetup.cmd
|
||||
]
|
||||
|
||||
cmds :: [Command]
|
||||
|
|
|
@ -34,8 +34,8 @@ import Utility.Tmp
|
|||
|
||||
import Control.Exception (IOException)
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ withOptions [includeDotFilesOption] $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ withOptions [includeDotFilesOption] $
|
||||
command "add" paramPaths seek SectionCommon
|
||||
"add files to annex"]
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ import qualified Command.Add
|
|||
import Command.Unused (withUnusedMaps, UnusedMaps(..), startUnused)
|
||||
import Types.Key
|
||||
|
||||
def :: [Command]
|
||||
def = [notDirect $ command "addunused" (paramRepeating paramNumRange)
|
||||
cmd :: [Command]
|
||||
cmd = [notDirect $ command "addunused" (paramRepeating paramNumRange)
|
||||
seek SectionMaintenance "add back unused files"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -32,8 +32,8 @@ import Annex.Quvi
|
|||
import qualified Utility.Quvi as Quvi
|
||||
#endif
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ withOptions [fileOption, pathdepthOption, relaxedOption] $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ withOptions [fileOption, pathdepthOption, relaxedOption] $
|
||||
command "addurl" (paramRepeating paramUrl) seek
|
||||
SectionCommon "add urls to annex"]
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@ import Assistant.Install
|
|||
|
||||
import System.Environment
|
||||
|
||||
def :: [Command]
|
||||
def = [noRepo checkAutoStart $ dontCheck repoExists $ withOptions options $
|
||||
cmd :: [Command]
|
||||
cmd = [noRepo checkAutoStart $ dontCheck repoExists $ withOptions options $
|
||||
notBareRepo $ command "assistant" paramNothing seek SectionCommon
|
||||
"automatically handle changes"]
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ import Command
|
|||
import qualified Annex.Branch
|
||||
import qualified Git
|
||||
|
||||
def :: [Command]
|
||||
def = [command "commit" paramNothing seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "commit" paramNothing seek
|
||||
SectionPlumbing "commits any staged changes to the git-annex branch"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -15,8 +15,8 @@ import qualified Annex.Branch
|
|||
import qualified Git.Config
|
||||
import Remote.GCrypt (coreGCryptId)
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ command "configlist" paramNothing seek
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ command "configlist" paramNothing seek
|
||||
SectionPlumbing "outputs relevant git configuration"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -14,8 +14,8 @@ import qualified Remote
|
|||
import Annex.Wanted
|
||||
import Config.NumCopies
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions Command.Move.moveOptions $ command "copy" paramPaths seek
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions Command.Move.moveOptions $ command "copy" paramPaths seek
|
||||
SectionCommon "copy content of files to/from another repository"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -11,8 +11,8 @@ import Command
|
|||
import Types.TrustLevel
|
||||
import Command.Trust (trustCommand)
|
||||
|
||||
def :: [Command]
|
||||
def = [command "dead" (paramRepeating paramRemote) seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "dead" (paramRepeating paramRemote) seek
|
||||
SectionSetup "hide a lost repository"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -12,8 +12,8 @@ import Command
|
|||
import qualified Remote
|
||||
import Logs.UUID
|
||||
|
||||
def :: [Command]
|
||||
def = [command "describe" (paramPair paramRemote paramDesc) seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "describe" (paramPair paramRemote paramDesc) seek
|
||||
SectionSetup "change description of a repository"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -15,8 +15,8 @@ import qualified Git.Branch
|
|||
import Config
|
||||
import Annex.Direct
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ noDaemonRunning $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ noDaemonRunning $
|
||||
command "direct" paramNothing seek
|
||||
SectionSetup "switch repository to direct mode"]
|
||||
|
||||
|
|
|
@ -22,8 +22,8 @@ import Annex.Notification
|
|||
|
||||
import qualified Data.Set as S
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions [dropFromOption] $ command "drop" paramPaths seek
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions [dropFromOption] $ command "drop" paramPaths seek
|
||||
SectionCommon "indicate content of files not currently wanted"]
|
||||
|
||||
dropFromOption :: Option
|
||||
|
|
|
@ -13,8 +13,8 @@ import qualified Annex
|
|||
import Logs.Location
|
||||
import Annex.Content
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ command "dropkey" (paramRepeating paramKey) seek
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ command "dropkey" (paramRepeating paramKey) seek
|
||||
SectionPlumbing "drops annexed content for specified keys"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -16,8 +16,8 @@ import qualified Git
|
|||
import Command.Unused (withUnusedMaps, UnusedMaps(..), startUnused)
|
||||
import Config.NumCopies
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions [Command.Drop.dropFromOption] $
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions [Command.Drop.dropFromOption] $
|
||||
command "dropunused" (paramRepeating paramNumRange)
|
||||
seek SectionMaintenance "drop unused file content"]
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@ import qualified Command.InitRemote as InitRemote
|
|||
|
||||
import qualified Data.Map as M
|
||||
|
||||
def :: [Command]
|
||||
def = [command "enableremote"
|
||||
cmd :: [Command]
|
||||
cmd = [command "enableremote"
|
||||
(paramPair paramName $ paramOptional $ paramRepeating paramKeyValue)
|
||||
seek SectionSetup "enables use of an existing special remote"]
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@ import qualified Utility.Format
|
|||
import Command.Find (formatOption, getFormat, showFormatted, keyVars)
|
||||
import Types.Key
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ noMessages $ withOptions [formatOption, jsonOption] $
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ noMessages $ withOptions [formatOption, jsonOption] $
|
||||
command "examinekey" (paramRepeating paramKey) seek
|
||||
SectionPlumbing "prints information from a key"]
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@ import qualified Utility.Format
|
|||
import Utility.DataUnits
|
||||
import Types.Key
|
||||
|
||||
def :: [Command]
|
||||
def = [mkCommand $ command "find" paramPaths seek SectionQuery "lists available files"]
|
||||
cmd :: [Command]
|
||||
cmd = [mkCommand $ command "find" paramPaths seek SectionQuery "lists available files"]
|
||||
|
||||
mkCommand :: Command -> Command
|
||||
mkCommand = noCommit . noMessages . withOptions [formatOption, print0Option, jsonOption]
|
||||
|
|
|
@ -10,8 +10,8 @@ module Command.FindRef where
|
|||
import Command
|
||||
import qualified Command.Find as Find
|
||||
|
||||
def :: [Command]
|
||||
def = [Find.mkCommand $ command "findref" paramRef seek SectionPlumbing
|
||||
cmd :: [Command]
|
||||
cmd = [Find.mkCommand $ command "findref" paramRef seek SectionPlumbing
|
||||
"lists files in a git ref"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -18,8 +18,8 @@ import Utility.Touch
|
|||
#endif
|
||||
#endif
|
||||
|
||||
def :: [Command]
|
||||
def = [notDirect $ noCommit $ command "fix" paramPaths seek
|
||||
cmd :: [Command]
|
||||
cmd = [notDirect $ noCommit $ command "fix" paramPaths seek
|
||||
SectionMaintenance "fix up symlinks to point to annexed content"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -15,8 +15,8 @@ import qualified Annex
|
|||
|
||||
import Data.Time.Clock.POSIX
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions forgetOptions $ command "forget" paramNothing seek
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions forgetOptions $ command "forget" paramNothing seek
|
||||
SectionMaintenance "prune git-annex branch history"]
|
||||
|
||||
forgetOptions :: [Option]
|
||||
|
|
|
@ -13,8 +13,8 @@ import qualified Annex.Queue
|
|||
import Annex.Content
|
||||
import Types.Key
|
||||
|
||||
def :: [Command]
|
||||
def = [notDirect $ notBareRepo $
|
||||
cmd :: [Command]
|
||||
cmd = [notDirect $ notBareRepo $
|
||||
command "fromkey" (paramPair paramKey paramPath) seek
|
||||
SectionPlumbing "adds a file using a specific key"]
|
||||
|
||||
|
|
|
@ -39,8 +39,8 @@ import Data.Time
|
|||
import System.Posix.Types (EpochTime)
|
||||
import System.Locale
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions fsckOptions $ command "fsck" paramPaths seek
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions fsckOptions $ command "fsck" paramPaths seek
|
||||
SectionMaintenance "check for problems"]
|
||||
|
||||
fsckFromOption :: Option
|
||||
|
|
|
@ -20,8 +20,8 @@ import System.Random (getStdRandom, random, randomR)
|
|||
import Test.QuickCheck
|
||||
import Control.Concurrent
|
||||
|
||||
def :: [Command]
|
||||
def = [ notBareRepo $ command "fuzztest" paramNothing seek SectionTesting
|
||||
cmd :: [Command]
|
||||
cmd = [ notBareRepo $ command "fuzztest" paramNothing seek SectionTesting
|
||||
"generates fuzz test files"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -13,8 +13,8 @@ import Annex.UUID
|
|||
import qualified Remote.GCrypt
|
||||
import qualified Git
|
||||
|
||||
def :: [Command]
|
||||
def = [dontCheck repoExists $ noCommit $
|
||||
cmd :: [Command]
|
||||
cmd = [dontCheck repoExists $ noCommit $
|
||||
command "gcryptsetup" paramValue seek
|
||||
SectionPlumbing "sets up gcrypt repository"]
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ import Config.NumCopies
|
|||
import Annex.Wanted
|
||||
import qualified Command.Move
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions getOptions $ command "get" paramPaths seek
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions getOptions $ command "get" paramPaths seek
|
||||
SectionCommon "make content of annexed files available"]
|
||||
|
||||
getOptions :: [Option]
|
||||
|
|
|
@ -15,8 +15,8 @@ import Types.Group
|
|||
|
||||
import qualified Data.Set as S
|
||||
|
||||
def :: [Command]
|
||||
def = [command "group" (paramPair paramRemote paramDesc) seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "group" (paramPair paramRemote paramDesc) seek
|
||||
SectionSetup "add a repository to a group"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -21,8 +21,8 @@ import qualified Command.Fsck
|
|||
|
||||
import System.Console.GetOpt
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ noRepo startNoRepo $ dontCheck repoExists $
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ noRepo startNoRepo $ dontCheck repoExists $
|
||||
command "help" paramNothing seek SectionQuery "display help"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
@ -47,15 +47,15 @@ showGeneralHelp :: IO ()
|
|||
showGeneralHelp = putStrLn $ unlines
|
||||
[ "The most frequently used git-annex commands are:"
|
||||
, unlines $ map cmdline $ concat
|
||||
[ Command.Init.def
|
||||
, Command.Add.def
|
||||
, Command.Drop.def
|
||||
, Command.Get.def
|
||||
, Command.Move.def
|
||||
, Command.Copy.def
|
||||
, Command.Sync.def
|
||||
, Command.Whereis.def
|
||||
, Command.Fsck.def
|
||||
[ Command.Init.cmd
|
||||
, Command.Add.cmd
|
||||
, Command.Drop.cmd
|
||||
, Command.Get.cmd
|
||||
, Command.Move.cmd
|
||||
, Command.Copy.cmd
|
||||
, Command.Sync.cmd
|
||||
, Command.Whereis.cmd
|
||||
, Command.Fsck.cmd
|
||||
]
|
||||
, "Run 'git-annex' for a complete command list."
|
||||
, "Run 'git-annex command --help' for help on a specific command."
|
||||
|
|
|
@ -16,8 +16,8 @@ import Backend
|
|||
import Remote
|
||||
import Types.KeySource
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions opts $ notBareRepo $ command "import" paramPaths seek
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions opts $ notBareRepo $ command "import" paramPaths seek
|
||||
SectionCommon "move and add files from outside git working copy"]
|
||||
|
||||
opts :: [Option]
|
||||
|
|
|
@ -37,8 +37,8 @@ import Types.MetaData
|
|||
import Logs.MetaData
|
||||
import Annex.MetaData
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ withOptions [templateOption, relaxedOption] $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ withOptions [templateOption, relaxedOption] $
|
||||
command "importfeed" (paramRepeating paramUrl) seek
|
||||
SectionCommon "import files from podcast feeds"]
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ import Common.Annex
|
|||
import Command
|
||||
import Annex.Content
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ command "inannex" (paramRepeating paramKey) seek
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ command "inannex" (paramRepeating paramKey) seek
|
||||
SectionPlumbing "checks if keys are present in the annex"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -22,8 +22,8 @@ import Annex.CatFile
|
|||
import Annex.Init
|
||||
import qualified Command.Add
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ noDaemonRunning $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ noDaemonRunning $
|
||||
command "indirect" paramNothing seek
|
||||
SectionSetup "switch repository to indirect mode"]
|
||||
|
||||
|
|
|
@ -69,8 +69,8 @@ data StatInfo = StatInfo
|
|||
-- a state monad for running Stats in
|
||||
type StatState = StateT StatInfo Annex
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ dontCheck repoExists $ withOptions [jsonOption] $
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ dontCheck repoExists $ withOptions [jsonOption] $
|
||||
command "info" paramPaths seek SectionQuery
|
||||
"shows general information about the annex"]
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ import Common.Annex
|
|||
import Command
|
||||
import Annex.Init
|
||||
|
||||
def :: [Command]
|
||||
def = [dontCheck repoExists $
|
||||
cmd :: [Command]
|
||||
cmd = [dontCheck repoExists $
|
||||
command "init" paramDesc seek SectionSetup "initialize git-annex"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -19,8 +19,8 @@ import Logs.Trust
|
|||
|
||||
import Data.Ord
|
||||
|
||||
def :: [Command]
|
||||
def = [command "initremote"
|
||||
cmd :: [Command]
|
||||
cmd = [command "initremote"
|
||||
(paramPair paramName $ paramOptional $ paramRepeating paramKeyValue)
|
||||
seek SectionSetup "creates a special (non-git) remote"]
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@ import Annex.UUID
|
|||
import qualified Annex
|
||||
import Git.Types (RemoteName)
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ withOptions [allrepos] $ command "list" paramPaths seek
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ withOptions [allrepos] $ command "list" paramPaths seek
|
||||
SectionQuery "show which remotes contain files"]
|
||||
|
||||
allrepos :: Option
|
||||
|
|
|
@ -12,8 +12,8 @@ import Command
|
|||
import qualified Annex.Queue
|
||||
import qualified Annex
|
||||
|
||||
def :: [Command]
|
||||
def = [notDirect $ command "lock" paramPaths seek SectionCommon
|
||||
cmd :: [Command]
|
||||
cmd = [notDirect $ command "lock" paramPaths seek SectionCommon
|
||||
"undo unlock command"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -34,8 +34,8 @@ data RefChange = RefChange
|
|||
|
||||
type Outputter = Bool -> POSIXTime -> [UUID] -> Annex ()
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions options $
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions options $
|
||||
command "log" paramPaths seek SectionQuery "shows location log"]
|
||||
|
||||
options :: [Option]
|
||||
|
|
|
@ -12,8 +12,8 @@ import Command
|
|||
import Annex.CatFile
|
||||
import Types.Key
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ noCommit $ noMessages $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ noCommit $ noMessages $
|
||||
command "lookupkey" (paramRepeating paramFile) seek
|
||||
SectionPlumbing "looks up key used for file"]
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ import qualified Utility.Dot as Dot
|
|||
-- a link from the first repository to the second (its remote)
|
||||
data Link = Link Git.Repo Git.Repo
|
||||
|
||||
def :: [Command]
|
||||
def = [dontCheck repoExists $
|
||||
cmd :: [Command]
|
||||
cmd = [dontCheck repoExists $
|
||||
command "map" paramNothing seek SectionQuery
|
||||
"generate map of repositories"]
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@ import qualified Annex.Branch
|
|||
import qualified Git.Branch
|
||||
import Command.Sync (prepMerge, mergeLocal)
|
||||
|
||||
def :: [Command]
|
||||
def = [command "merge" paramNothing seek SectionMaintenance
|
||||
cmd :: [Command]
|
||||
cmd = [command "merge" paramNothing seek SectionMaintenance
|
||||
"automatically merge changes from remotes"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -16,8 +16,8 @@ import Logs.MetaData
|
|||
import qualified Data.Set as S
|
||||
import Data.Time.Clock.POSIX
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions metaDataOptions $
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions metaDataOptions $
|
||||
command "metadata" paramPaths seek
|
||||
SectionMetaData "sets metadata of a file"]
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ import Annex.Content
|
|||
import qualified Command.ReKey
|
||||
import qualified Command.Fsck
|
||||
|
||||
def :: [Command]
|
||||
def = [notDirect $
|
||||
cmd :: [Command]
|
||||
cmd = [notDirect $
|
||||
command "migrate" paramPaths seek
|
||||
SectionUtility "switch data to different backend"]
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ import Annex.Content
|
|||
import qualified Annex
|
||||
import Config.NumCopies
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions (fromToOptions ++ keyOptions) $
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions (fromToOptions ++ keyOptions) $
|
||||
command "mirror" paramPaths seek
|
||||
SectionCommon "mirror content of files to/from another repository"]
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ import Annex.UUID
|
|||
import Annex.Transfer
|
||||
import Logs.Presence
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions moveOptions $ command "move" paramPaths seek
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions moveOptions $ command "move" paramPaths seek
|
||||
SectionCommon "move content of files to/from another repository"]
|
||||
|
||||
moveOptions :: [Option]
|
||||
|
|
|
@ -19,8 +19,8 @@ import Control.Concurrent
|
|||
import Control.Concurrent.Async
|
||||
import Control.Concurrent.STM
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ command "notifychanges" paramNothing seek SectionPlumbing
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ command "notifychanges" paramNothing seek SectionPlumbing
|
||||
"sends notification when git refs are changed"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -13,8 +13,8 @@ import Command
|
|||
import Config.NumCopies
|
||||
import Types.Messages
|
||||
|
||||
def :: [Command]
|
||||
def = [command "numcopies" paramNumber seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "numcopies" paramNumber seek
|
||||
SectionSetup "configure desired number of copies"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -26,8 +26,8 @@ import Types.MetaData
|
|||
|
||||
import qualified Data.Set as S
|
||||
|
||||
def :: [Command]
|
||||
def = [command "pre-commit" paramPaths seek SectionPlumbing
|
||||
cmd :: [Command]
|
||||
cmd = [command "pre-commit" paramPaths seek SectionPlumbing
|
||||
"run by git pre-commit hook"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -17,8 +17,8 @@ import Logs.Web
|
|||
import Logs.Location
|
||||
import Utility.CopyFile
|
||||
|
||||
def :: [Command]
|
||||
def = [notDirect $ command "rekey"
|
||||
cmd :: [Command]
|
||||
cmd = [notDirect $ command "rekey"
|
||||
(paramOptional $ paramRepeating $ paramPair paramPath paramKey)
|
||||
seek SectionPlumbing "change keys used for files"]
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@ import qualified Types.Key
|
|||
import qualified Types.Backend
|
||||
import qualified Backend
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ command "recvkey" paramKey seek
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ command "recvkey" paramKey seek
|
||||
SectionPlumbing "runs rsync in server mode to receive content"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -14,8 +14,8 @@ import Annex.UUID
|
|||
import Types.UUID
|
||||
import qualified Remote
|
||||
|
||||
def :: [Command]
|
||||
def = [dontCheck repoExists $
|
||||
cmd :: [Command]
|
||||
cmd = [dontCheck repoExists $
|
||||
command "reinit" (paramUUID ++ " or " ++ paramDesc) seek SectionUtility ""]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -14,8 +14,8 @@ import Annex.Content
|
|||
import qualified Command.Fsck
|
||||
import qualified Backend
|
||||
|
||||
def :: [Command]
|
||||
def = [command "reinject" (paramPair "SRC" "DEST") seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "reinject" (paramPair "SRC" "DEST") seek
|
||||
SectionUtility "sets content of annexed file"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -11,8 +11,8 @@ import Common.Annex
|
|||
import Command
|
||||
import RemoteDaemon.Core
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ command "remotedaemon" paramNothing seek SectionPlumbing
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ command "remotedaemon" paramNothing seek SectionPlumbing
|
||||
"detects when remotes have changed, and fetches from them"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -16,8 +16,8 @@ import qualified Git.Ref
|
|||
import Git.Types
|
||||
import Annex.Version
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ dontCheck repoExists $
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ dontCheck repoExists $
|
||||
command "repair" paramNothing seek SectionMaintenance "recover broken git repository"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -14,8 +14,8 @@ import Git.Sha
|
|||
import qualified Git.Branch
|
||||
import Annex.AutoMerge
|
||||
|
||||
def :: [Command]
|
||||
def = [command "resolvemerge" paramNothing seek SectionPlumbing
|
||||
cmd :: [Command]
|
||||
cmd = [command "resolvemerge" paramNothing seek SectionPlumbing
|
||||
"resolve merge conflicts"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -11,8 +11,8 @@ import Common.Annex
|
|||
import Command
|
||||
import Logs.Web
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $
|
||||
command "rmurl" (paramPair paramFile paramUrl) seek
|
||||
SectionCommon "record file is not available at url"]
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ import Types.Messages
|
|||
|
||||
import qualified Data.Set as S
|
||||
|
||||
def :: [Command]
|
||||
def = [command "schedule" (paramPair paramRemote (paramOptional paramExpression)) seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "schedule" (paramPair paramRemote (paramOptional paramExpression)) seek
|
||||
SectionSetup "get or set scheduled jobs"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -11,8 +11,8 @@ import Command
|
|||
import Types.TrustLevel
|
||||
import Command.Trust (trustCommand)
|
||||
|
||||
def :: [Command]
|
||||
def = [command "semitrust" (paramRepeating paramRemote) seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "semitrust" (paramRepeating paramRemote) seek
|
||||
SectionSetup "return repository to default trust level"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -16,8 +16,8 @@ import Annex.Transfer
|
|||
import qualified CmdLine.GitAnnexShell.Fields as Fields
|
||||
import Utility.Metered
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ command "sendkey" paramKey seek
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ command "sendkey" paramKey seek
|
||||
SectionPlumbing "runs rsync in server mode to send content"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -16,8 +16,8 @@ import qualified Git.LsFiles as LsFiles
|
|||
import qualified Git.Ref
|
||||
import qualified Git
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ noCommit $ noMessages $ withOptions [jsonOption] $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ noCommit $ noMessages $ withOptions [jsonOption] $
|
||||
command "status" paramPaths seek SectionCommon
|
||||
"show the working tree status"]
|
||||
|
||||
|
|
|
@ -35,8 +35,8 @@ import Annex.Ssh
|
|||
|
||||
import Control.Concurrent.MVar
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions syncOptions $
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions syncOptions $
|
||||
command "sync" (paramOptional (paramRepeating paramRemote))
|
||||
seek SectionCommon "synchronize local repository with remotes"]
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ import Common
|
|||
import Command
|
||||
import Messages
|
||||
|
||||
def :: [Command]
|
||||
def = [ noRepo startIO $ dontCheck repoExists $
|
||||
cmd :: [Command]
|
||||
cmd = [ noRepo startIO $ dontCheck repoExists $
|
||||
command "test" paramNothing seek SectionTesting
|
||||
"run built-in test suite"]
|
||||
|
||||
|
|
|
@ -36,8 +36,8 @@ import qualified Data.ByteString as B
|
|||
import qualified Data.ByteString.Lazy as L
|
||||
import qualified Data.Map as M
|
||||
|
||||
def :: [Command]
|
||||
def = [ withOptions [sizeOption] $
|
||||
cmd :: [Command]
|
||||
cmd = [ withOptions [sizeOption] $
|
||||
command "testremote" paramRemote seek SectionTesting
|
||||
"test transfers to/from a remote"]
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@ import Types.Key
|
|||
import qualified CmdLine.GitAnnexShell.Fields as Fields
|
||||
import Utility.Metered
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ command "transferinfo" paramKey seek SectionPlumbing
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ command "transferinfo" paramKey seek SectionPlumbing
|
||||
"updates sender on number of bytes of content received"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -15,8 +15,8 @@ import Annex.Transfer
|
|||
import qualified Remote
|
||||
import Types.Remote
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions transferKeyOptions $
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions transferKeyOptions $
|
||||
noCommit $ command "transferkey" paramKey seek SectionPlumbing
|
||||
"transfers a key from or to a remote"]
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ import Git.Types (RemoteName)
|
|||
|
||||
data TransferRequest = TransferRequest Direction Remote Key AssociatedFile
|
||||
|
||||
def :: [Command]
|
||||
def = [command "transferkeys" paramNothing seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "transferkeys" paramNothing seek
|
||||
SectionPlumbing "transfers keys"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -16,8 +16,8 @@ import Logs.Group
|
|||
|
||||
import qualified Data.Set as S
|
||||
|
||||
def :: [Command]
|
||||
def = [command "trust" (paramRepeating paramRemote) seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "trust" (paramRepeating paramRemote) seek
|
||||
SectionSetup "trust a repository"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -22,8 +22,8 @@ import qualified Git.DiffTree as DiffTree
|
|||
import Utility.CopyFile
|
||||
import Command.PreCommit (lockPreCommitHook)
|
||||
|
||||
def :: [Command]
|
||||
def = [command "unannex" paramPaths seek SectionUtility
|
||||
cmd :: [Command]
|
||||
cmd = [command "unannex" paramPaths seek SectionUtility
|
||||
"undo accidential add command"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -15,8 +15,8 @@ import Types.Group
|
|||
|
||||
import qualified Data.Set as S
|
||||
|
||||
def :: [Command]
|
||||
def = [command "ungroup" (paramPair paramRemote paramDesc) seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "ungroup" (paramPair paramRemote paramDesc) seek
|
||||
SectionSetup "remove a repository from a group"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -21,8 +21,8 @@ import Utility.FileMode
|
|||
import System.IO.HVFS
|
||||
import System.IO.HVFS.Utils
|
||||
|
||||
def :: [Command]
|
||||
def = [addCheck check $ command "uninit" paramPaths seek
|
||||
cmd :: [Command]
|
||||
cmd = [addCheck check $ command "uninit" paramPaths seek
|
||||
SectionUtility "de-initialize git-annex and clean out repository"]
|
||||
|
||||
check :: Annex ()
|
||||
|
|
|
@ -12,8 +12,8 @@ import Command
|
|||
import Annex.Content
|
||||
import Utility.CopyFile
|
||||
|
||||
def :: [Command]
|
||||
def =
|
||||
cmd :: [Command]
|
||||
cmd =
|
||||
[ c "unlock" "unlock files for modification"
|
||||
, c "edit" "same as unlock"
|
||||
]
|
||||
|
|
|
@ -11,8 +11,8 @@ import Command
|
|||
import Types.TrustLevel
|
||||
import Command.Trust (trustCommand)
|
||||
|
||||
def :: [Command]
|
||||
def = [command "untrust" (paramRepeating paramRemote) seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "untrust" (paramRepeating paramRemote) seek
|
||||
SectionSetup "do not trust a repository"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -35,8 +35,8 @@ import Git.FilePath
|
|||
import Logs.View (is_branchView)
|
||||
import Utility.Bloom
|
||||
|
||||
def :: [Command]
|
||||
def = [withOptions [unusedFromOption] $ command "unused" paramNothing seek
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions [unusedFromOption] $ command "unused" paramNothing seek
|
||||
SectionMaintenance "look for unused file content"]
|
||||
|
||||
unusedFromOption :: Option
|
||||
|
|
|
@ -11,8 +11,8 @@ import Common.Annex
|
|||
import Command
|
||||
import Upgrade
|
||||
|
||||
def :: [Command]
|
||||
def = [dontCheck repoExists $ -- because an old version may not seem to exist
|
||||
cmd :: [Command]
|
||||
cmd = [dontCheck repoExists $ -- because an old version may not seem to exist
|
||||
command "upgrade" paramNothing seek
|
||||
SectionMaintenance "upgrade repository layout"]
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ import Command
|
|||
import Annex.View
|
||||
import Command.View (checkoutViewBranch)
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ notDirect $ command "vadd" (paramRepeating "FIELD=GLOB")
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ notDirect $ command "vadd" (paramRepeating "FIELD=GLOB")
|
||||
seek SectionMetaData "add subdirs to current view"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -14,8 +14,8 @@ import Types.View
|
|||
import Logs.View
|
||||
import Command.View (checkoutViewBranch)
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ notDirect $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ notDirect $
|
||||
command "vcycle" paramNothing seek SectionUtility
|
||||
"switch view to next layout"]
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ import Command
|
|||
import Annex.View
|
||||
import Command.View (paramView, checkoutViewBranch)
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ notDirect $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ notDirect $
|
||||
command "vfilter" paramView seek SectionMetaData "filter current view"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -16,8 +16,8 @@ import Types.View
|
|||
import Logs.View
|
||||
import Command.View (checkoutViewBranch)
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ notDirect $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ notDirect $
|
||||
command "vpop" (paramOptional paramNumber) seek SectionMetaData
|
||||
"switch back to previous view"]
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ import qualified Types.Remote as R
|
|||
import qualified Remote
|
||||
import qualified Backend
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ noRepo startNoRepo $ dontCheck repoExists $
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ noRepo startNoRepo $ dontCheck repoExists $
|
||||
command "version" paramNothing seek SectionQuery "show version info"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -29,8 +29,8 @@ import Types.StandardGroups
|
|||
import Types.ScheduledActivity
|
||||
import Remote
|
||||
|
||||
def :: [Command]
|
||||
def = [command "vicfg" paramNothing seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "vicfg" paramNothing seek
|
||||
SectionSetup "edit git-annex's configuration"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
@ -101,7 +101,7 @@ defCfg curcfg = Cfg
|
|||
}
|
||||
where
|
||||
mapdef :: forall k v. Default v => M.Map k v -> M.Map k v
|
||||
mapdef = M.map (const Data.Default.def)
|
||||
mapdef = M.map (const def)
|
||||
|
||||
diffCfg :: Cfg -> Cfg -> Cfg
|
||||
diffCfg curcfg newcfg = Cfg
|
||||
|
@ -142,7 +142,7 @@ genCfg cfg descs = unlines $ intercalate [""]
|
|||
, com "(Valid trust levels: " ++ trustlevels ++ ")"
|
||||
]
|
||||
(\(t, u) -> line "trust" u $ showTrustLevel t)
|
||||
(\u -> lcom $ line "trust" u $ showTrustLevel Data.Default.def)
|
||||
(\u -> lcom $ line "trust" u $ showTrustLevel def)
|
||||
where
|
||||
trustlevels = unwords $ map showTrustLevel [Trusted .. DeadTrusted]
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ import Types.View
|
|||
import Annex.View
|
||||
import Logs.View
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ notDirect $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ notDirect $
|
||||
command "view" paramView seek SectionMetaData "enter a view branch"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -16,8 +16,8 @@ import Types.Messages
|
|||
|
||||
import qualified Data.Map as M
|
||||
|
||||
def :: [Command]
|
||||
def = [command "wanted" (paramPair paramRemote (paramOptional paramExpression)) seek
|
||||
cmd :: [Command]
|
||||
cmd = [command "wanted" (paramPair paramRemote (paramOptional paramExpression)) seek
|
||||
SectionSetup "get or set preferred content expression"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -12,8 +12,8 @@ import Assistant
|
|||
import Command
|
||||
import Utility.HumanTime
|
||||
|
||||
def :: [Command]
|
||||
def = [notBareRepo $ withOptions [foregroundOption, stopOption] $
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ withOptions [foregroundOption, stopOption] $
|
||||
command "watch" paramNothing seek SectionCommon "watch for changes"]
|
||||
|
||||
seek :: CommandSeek
|
||||
|
|
|
@ -37,8 +37,8 @@ import Control.Concurrent.STM
|
|||
import Network.Socket (HostName)
|
||||
import System.Environment (getArgs)
|
||||
|
||||
def :: [Command]
|
||||
def = [ withOptions [listenOption] $
|
||||
cmd :: [Command]
|
||||
cmd = [ withOptions [listenOption] $
|
||||
noCommit $ noRepo startNoRepo $ dontCheck repoExists $ notBareRepo $
|
||||
command "webapp" paramNothing seek SectionCommon "launch webapp"]
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ import Command
|
|||
import Remote
|
||||
import Logs.Trust
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ withOptions (jsonOption : keyOptions) $
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ withOptions (jsonOption : keyOptions) $
|
||||
command "whereis" paramPaths seek SectionQuery
|
||||
"lists repositories that have file content"]
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ import Common.Annex
|
|||
import Command
|
||||
import Assistant.XMPP.Git
|
||||
|
||||
def :: [Command]
|
||||
def = [noCommit $ noRepo startNoRepo $ dontCheck repoExists $
|
||||
cmd :: [Command]
|
||||
cmd = [noCommit $ noRepo startNoRepo $ dontCheck repoExists $
|
||||
command "xmppgit" paramNothing seek
|
||||
SectionPlumbing "git to XMPP relay"]
|
||||
|
||||
|
@ -37,9 +37,9 @@ gitRemoteHelper = do
|
|||
respond []
|
||||
where
|
||||
expect s = do
|
||||
cmd <- getLine
|
||||
unless (cmd == s) $
|
||||
error $ "git-remote-helpers protocol error: expected: " ++ s ++ ", but got: " ++ cmd
|
||||
gitcmd <- getLine
|
||||
unless (gitcmd == s) $
|
||||
error $ "git-remote-helpers protocol error: expected: " ++ s ++ ", but got: " ++ gitcmd
|
||||
respond l = do
|
||||
mapM_ putStrLn l
|
||||
putStrLn ""
|
||||
|
|
Loading…
Reference in a new issue