Permalink
Browse files

Add ascii logo

  • Loading branch information...
lgaticaq committed Mar 2, 2016
1 parent 4ea5c7e commit 9d425a51c09a699e7daf903b56d0d30299c52362
Showing with 7 additions and 0 deletions.
  1. +1 −0 src/ascii-logo.js
  2. +2 −0 src/beerjs-events.js
  3. +2 −0 src/beerjs-info.js
  4. +2 −0 src/beerjs.js

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -4,11 +4,13 @@
import program from 'commander';
import beerjs from 'beerjs-info';
import logo from './ascii-logo';
program
.parse(process.argv);
beerjs.getEvents().then((events) => {
console.log(logo);
let _events;
if (program.args.length !== 0) {
_events = events.filter(x => /(\d+)([\w\W\d\s]+)/.exec(x.title)[1] === program.args[0]);
@@ -5,11 +5,13 @@
import program from 'commander';
import beerjs from 'beerjs-info';
import emoji from 'node-emoji';
import logo from './ascii-logo';
program
.parse(process.argv);
beerjs.getInfo().then((data) => {
console.log(logo);
console.log(`Evento: ${data.evento.replace(':beerjs:', emoji.get('beer'))}`);
console.log(`Fecha: ${data.fecha}`);
console.log(`Donde: ${data.donde}`);
@@ -4,6 +4,7 @@
import program from 'commander';
import pkg from '../package.json';
import logo from './ascii-logo';
program
.version(pkg.version)
@@ -13,5 +14,6 @@ program
.parse(process.argv);
if (program.args.length === 0) {
console.log(logo);
program.help();
}

0 comments on commit 9d425a5

Please sign in to comment.