diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-18 15:32:31 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-18 15:32:31 -0400 |
commit | 338e98c8efcbdabbe00e1f9e64f409aa64f3581a (patch) | |
tree | fb8bceadc363de16443c5d4dbda87995e734fa15 /CmdLine.hs | |
parent | 37f7700c75adff98685cf54966b58d97dac8afcf (diff) | |
download | keysafe-338e98c8efcbdabbe00e1f9e64f409aa64f3581a.tar.gz |
add support for multiple storage locattions
also, server upload queues in ~/.keysafe
Diffstat (limited to 'CmdLine.hs')
-rw-r--r-- | CmdLine.hs | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -11,14 +11,11 @@ import qualified Gpg import Options.Applicative import qualified Data.ByteString.UTF8 as BU8 import System.Directory -import Storage -import Storage.Local -import Storage.Network data CmdLine = CmdLine { mode :: Maybe Mode , secretkeysource :: Maybe SecretKeySource - , storage :: Storage + , localstorage :: Bool , gui :: Bool , testMode :: Bool , customShardParams :: Maybe ShardParams @@ -31,7 +28,7 @@ parse :: Parser CmdLine parse = CmdLine <$> optional (backup <|> restore <|> benchmark) <*> optional (gpgswitch <|> fileswitch) - <*> localstorageflag + <*> localstorageswitch <*> guiswitch <*> testmodeswitch <*> optional (ShardParams <$> totalobjects <*> neededobjects) @@ -58,7 +55,7 @@ parse = CmdLine <> metavar "FILE" <> help "Specify secret key file to back up or restore. (The same filename must be used to restore a key as was used to back it up.)" ) - localstorageflag = flag networkStorage localStorage + localstorageswitch = switch ( long "store-local" <> help "Store data locally, in ~/.keysafe/objects. (The default is to store data in the cloud.)" ) |