mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-22 02:40:04 +00:00
remove unused contructor variables
This commit is contained in:
parent
38b5b5ada5
commit
1745585fb8
9 changed files with 9 additions and 13 deletions
|
@ -44,7 +44,7 @@ OptionParser.new do |opts|
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
config = MPW::Config.new(options[:config])
|
config = MPW::Config.new(options[:config])
|
||||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
cli = MPW::Cli.new(config, options[:sync])
|
||||||
|
|
||||||
cli.get_wallet(options[:wallet])
|
cli.get_wallet(options[:wallet])
|
||||||
cli.decrypt
|
cli.decrypt
|
||||||
|
|
|
@ -60,7 +60,7 @@ OptionParser.new do |opts|
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
config = MPW::Config.new(options[:config])
|
config = MPW::Config.new(options[:config])
|
||||||
cli = MPW::Cli.new(config, nil, nil, nil)
|
cli = MPW::Cli.new(config, nil)
|
||||||
|
|
||||||
if not options[:init].nil?
|
if not options[:init].nil?
|
||||||
cli.setup(options)
|
cli.setup(options)
|
||||||
|
|
|
@ -52,7 +52,7 @@ OptionParser.new do |opts|
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
config = MPW::Config.new(options[:config])
|
config = MPW::Config.new(options[:config])
|
||||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
cli = MPW::Cli.new(config, options[:sync])
|
||||||
|
|
||||||
opts = { search: options[:pattern],
|
opts = { search: options[:pattern],
|
||||||
group: options[:group],
|
group: options[:group],
|
||||||
|
|
|
@ -56,7 +56,7 @@ OptionParser.new do |opts|
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
config = MPW::Config.new(options[:config])
|
config = MPW::Config.new(options[:config])
|
||||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
cli = MPW::Cli.new(config, options[:sync])
|
||||||
|
|
||||||
opts = { search: options[:pattern],
|
opts = { search: options[:pattern],
|
||||||
group: options[:group],
|
group: options[:group],
|
||||||
|
|
|
@ -48,7 +48,7 @@ OptionParser.new do |opts|
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
config = MPW::Config.new(options[:config])
|
config = MPW::Config.new(options[:config])
|
||||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
cli = MPW::Cli.new(config, options[:sync])
|
||||||
|
|
||||||
opts = { search: options[:pattern],
|
opts = { search: options[:pattern],
|
||||||
group: options[:group],
|
group: options[:group],
|
||||||
|
|
|
@ -52,7 +52,7 @@ OptionParser.new do |opts|
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
config = MPW::Config.new(options[:config])
|
config = MPW::Config.new(options[:config])
|
||||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
cli = MPW::Cli.new(config, options[:sync])
|
||||||
|
|
||||||
opts = { search: options[:pattern],
|
opts = { search: options[:pattern],
|
||||||
group: options[:group],
|
group: options[:group],
|
||||||
|
|
|
@ -52,7 +52,7 @@ OptionParser.new do |opts|
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
config = MPW::Config.new(options[:config])
|
config = MPW::Config.new(options[:config])
|
||||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
cli = MPW::Cli.new(config, options[:sync])
|
||||||
|
|
||||||
opts = { search: options[:pattern],
|
opts = { search: options[:pattern],
|
||||||
group: options[:group],
|
group: options[:group],
|
||||||
|
|
|
@ -44,6 +44,6 @@ OptionParser.new do |opts|
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
config = MPW::Config.new(options[:config])
|
config = MPW::Config.new(options[:config])
|
||||||
cli = MPW::Cli.new(config, nil, options[:sync], nil)
|
cli = MPW::Cli.new(config, options[:sync])
|
||||||
|
|
||||||
cli.list_wallet
|
cli.list_wallet
|
||||||
|
|
|
@ -32,13 +32,9 @@ class Cli
|
||||||
# Constructor
|
# Constructor
|
||||||
# @args: config -> the config
|
# @args: config -> the config
|
||||||
# sync -> boolean for sync or not
|
# sync -> boolean for sync or not
|
||||||
# clipboard -> enable clopboard
|
def initialize(config,sync=true)
|
||||||
# otp -> enable otp
|
|
||||||
def initialize(config, clipboard=true, sync=true, otp=false)
|
|
||||||
@config = config
|
@config = config
|
||||||
@clipboard = clipboard
|
|
||||||
@sync = sync
|
@sync = sync
|
||||||
@otp = otp
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Change a parameter int the config after init
|
# Change a parameter int the config after init
|
||||||
|
|
Loading…
Add table
Reference in a new issue