Skip to content

Commit

Permalink
Update alfy.output's argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jul 21, 2020
1 parent ff6606e commit 063a479
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ alfy.alfred = {

alfy.input = process.argv[2];

alfy.output = (items, options) => {
const rerun = options ? options.rerun : undefined;
console.log(JSON.stringify({ items, rerun }, null, '\t'));
alfy.output = (items, { rerunInterval } = {}) => {
console.log(JSON.stringify({ items, rerun: rerunInterval }, null, '\t'));
};

alfy.matches = (input, list, item) => {
Expand Down

0 comments on commit 063a479

Please sign in to comment.