const p = argv.p || argv.path; if(p) { browser.webContents.send('application:add-path', p.split(path.delimiter));
const run = async () => { const params = { index: utils.getIndexAlias('document', 'read'), scroll: '10s', size: 10, _source: ['meta', 'content'], body: { query: { term: { 'meta.path.keyword': argv.path } } } } for await (const hit of Elasticsearch.scroll(elastic, params)) { visit(hit._source.content, 'zone', node => { if ( (!argv.identifier || node.identifier === argv.identifier) && (!argv.dataId || (node.data && node.data.id === argv.dataId)) ) { console.log(JSON.stringify(node.data)) } }) } await elastic.close() }
PgDb.connect().then(async pgdb => { console.log('Loading file list...') const files = await recursive(path.join(argv.path, '/elected'), ['.*'])
PgDb.connect().then(async pgdb => { console.log('Loading file list...') const files = await recursive(path.join(argv.path, '/triage'), ['.*'])
const run = async () => { const params = { index: utils.getIndexAlias('document', 'read'), scroll: '10s', size: 10, _source: ['meta', 'content'], body: { query: { term: { 'meta.path.keyword': argv.path } } } } for await (const hit of Elasticsearch.scroll(elastic, params)) { visit(hit._source.content, 'zone', node => { if ( (!argv.identifier || node.identifier === argv.identifier) && (!argv.dataId || (node.data && node.data.id === argv.dataId)) ) { console.log(JSON.stringify(node.data)) } }) } await elastic.close() }
PgDb.connect().then(async pgdb => { console.log('Loading file list...') const files = await recursive(path.join(argv.path, '/triage'), ['.*'])
PgDb.connect().then(async pgdb => { console.log('Loading file list...') const files = await recursive(path.join(argv.path, '/elected'), ['.*'])