mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-21 10:20:05 +00:00
minor fix in list_keys interface
This commit is contained in:
parent
362253c63b
commit
e17219c772
1 changed files with 2 additions and 1 deletions
|
@ -123,11 +123,12 @@ class Cli
|
||||||
length += 7
|
length += 7
|
||||||
|
|
||||||
puts "\n#{I18n.t('display.keys')}".red
|
puts "\n#{I18n.t('display.keys')}".red
|
||||||
|
print ' '
|
||||||
length.times { print '=' }
|
length.times { print '=' }
|
||||||
print "\n"
|
print "\n"
|
||||||
|
|
||||||
@mpw.list_keys.each do |key|
|
@mpw.list_keys.each do |key|
|
||||||
print " #{i}".cyan
|
print " #{i}".cyan
|
||||||
(3 - i.to_s.length).times { print ' ' }
|
(3 - i.to_s.length).times { print ' ' }
|
||||||
puts "| #{key}"
|
puts "| #{key}"
|
||||||
i += 1
|
i += 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue