mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
print batch job list in json format
This commit is contained in:
@@ -2,6 +2,7 @@ require 'fileutils'
|
||||
require 'getoptlong'
|
||||
require 'open3'
|
||||
require 'pg'
|
||||
require 'json'
|
||||
|
||||
require_relative '../helpers/print.rb'
|
||||
require_relative '../helpers/constants.rb'
|
||||
@@ -266,7 +267,7 @@ def list(options)
|
||||
items = select_all(db_conn)
|
||||
end
|
||||
items.each do |row|
|
||||
Print.info row
|
||||
Print.info row.to_json
|
||||
end
|
||||
|
||||
db_conn.finish
|
||||
|
||||
Reference in New Issue
Block a user