Indentation fix
This commit is contained in:
@@ -3,26 +3,26 @@
|
||||
class WpUsers < WpItems
|
||||
module Output
|
||||
|
||||
# @param [ Hash ] options
|
||||
# @option options[ Boolean ] :show_password Output the password column
|
||||
#
|
||||
# @return [ void ]
|
||||
def output(options = {})
|
||||
# @param [ Hash ] options
|
||||
# @option options[ Boolean ] :show_password Output the password column
|
||||
#
|
||||
# @return [ void ]
|
||||
def output(options = {})
|
||||
|
||||
rows = []
|
||||
headings = ['Id', 'Name']
|
||||
headings << 'Password' if options[:show_password]
|
||||
rows = []
|
||||
headings = ['Id', 'Name']
|
||||
headings << 'Password' if options[:show_password]
|
||||
|
||||
self.each do |wp_user|
|
||||
row = [wp_user.id, wp_user.display_name]
|
||||
row << wp_user.password if options[:show_password]
|
||||
rows << row
|
||||
self.each do |wp_user|
|
||||
row = [wp_user.id, wp_user.display_name]
|
||||
row << wp_user.password if options[:show_password]
|
||||
rows << row
|
||||
end
|
||||
|
||||
puts Terminal::Table.new(headings: headings,
|
||||
rows: rows,
|
||||
style: { margin_left: options[:margin_left] || '' })
|
||||
end
|
||||
|
||||
puts Terminal::Table.new(headings: headings,
|
||||
rows: rows,
|
||||
style: { margin_left: options[:margin_left] || '' })
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user