export: Added options for json output

Just worked, no need to do anything except add the options.
This commit is contained in:
Joey Hess 2020-05-26 10:31:10 -04:00
parent bbdba72624
commit fc9833f68d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 26 additions and 3 deletions

View file

@ -44,9 +44,10 @@ import qualified Data.Map as M
import Control.Concurrent
cmd :: Command
cmd = command "export" SectionCommon
"export content to a remote"
paramTreeish (seek <$$> optParser)
cmd = withGlobalOptions [jsonOptions, jsonProgressOption] $
command "export" SectionCommon
"export content to a remote"
paramTreeish (seek <$$> optParser)
data ExportOptions = ExportOptions
{ exportTreeish :: Git.Ref