1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 02:33:19 +00:00

feat: show wallet list by default

This commit is contained in:
Adrien Waksberg 2017-05-19 22:28:15 +02:00
parent 8e4fb1c91b
commit 7c36986141

View file

@ -74,12 +74,10 @@ cli = MPW::Cli.new(config)
cli.load_config cli.load_config
if options.key?(:list) if options.key?(:path)
cli.list_wallet
elsif options.key?(:path)
cli.get_wallet(options[:wallet]) cli.get_wallet(options[:wallet])
cli.set_wallet_path(options[:path]) cli.set_wallet_path(options[:path])
else elsif options.key?(:list_keys) || options.key?(:gpg_key)
cli.get_wallet(options[:wallet]) cli.get_wallet(options[:wallet])
cli.decrypt cli.decrypt
@ -88,4 +86,6 @@ else
elsif options.key?(:gpg_key) elsif options.key?(:gpg_key)
options[:delete] ? cli.delete_key(options[:gpg_key]) : cli.add_key(options[:gpg_key]) options[:delete] ? cli.delete_key(options[:gpg_key]) : cli.add_key(options[:gpg_key])
end end
else
cli.list_wallet
end end