2024-07-07 16:08:10 +00:00
|
|
|
{- git-annex command
|
|
|
|
-
|
|
|
|
- Copyright 2024 Joey Hess <id@joeyh.name>
|
|
|
|
-
|
|
|
|
- Licensed under the GNU AGPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
{-# LANGUAGE DataKinds #-}
|
|
|
|
{-# LANGUAGE TypeOperators #-}
|
|
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
|
|
|
|
|
|
module Command.P2PHttp where
|
|
|
|
|
|
|
|
import Command
|
2024-07-07 16:59:12 +00:00
|
|
|
import P2P.Http
|
2024-07-07 16:08:10 +00:00
|
|
|
|
|
|
|
cmd :: Command
|
|
|
|
cmd = command "p2phttp" SectionPlumbing
|
|
|
|
"communicate in P2P protocol over http"
|
|
|
|
paramNothing (withParams seek)
|
|
|
|
|
|
|
|
seek :: CmdParams -> CommandSeek
|
2024-07-08 11:44:59 +00:00
|
|
|
seek _ = liftIO $ P2P.Http.run
|