How to use the alfy.log function in alfy

To help you get started, we’ve selected a few alfy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apertureless / wipfred / index.js View on Github external
}).then((json) => {
    const { data } = json
    if (!data) {
      return alfy.log(json.errors ? json.errors : 'Unknown GraphQL Error')
    }
    const results = alfy
      .inputMatches(data.viewer.todos, 'body')
      .map((todo) => {
      return {
        title: todo.body,
        subtitle: 'Pending todo',
        arg: todo.id,
        icon: {
          type: 'png',
          path: path.resolve(__dirname, './wipfred-todo.png')
        }
      }
    })
    alfy.output(results)
  })
github importre / alfred-gi / index.js View on Github external
.catch(error => {
    alfy.log(error);
  });