mirror of
https://github.com/nishiki/manage-password.git
synced 2025-03-20 21:34:35 +00:00
feat: show wallet list by default
This commit is contained in:
parent
8e4fb1c91b
commit
7c36986141
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue