Code Monkey home page Code Monkey logo

eat's Introduction

eat

Build Status

Command line tool for getting the daily menu of different locations written in Go.

Build

Clone this repository and run go build within the directory.

$ git clone https://github.com/srehwald/eat.git
$ cd eat/
$ go build

Available Locations

By now, the following locations are available:

  • Mensa Garching
  • Mensa Arcisstraße
  • StuBistro Großhadern
  • FMI Bistro
  • IPP Bistro

Call eat -h in order to see the correct names you need to use within the tool.

This project is using eat-api.

Usage

Check out the usage menu:

usage: eat [-options] <location>
Options:
    -h, --help  show usage
    -d DATE     date of the menu (format: yyyy-mm-dd; default: current date)
Locations: <full name> (<short name>)
    mensa-garching (mg)
    mensa-arcisstrasse (ma)
    stubistro-grosshadern (sg)
    fmi-bistro (fmi)
    ipp-bistro (ipp)

Examples

The following examples assume that you added the eat executable to your PATH. Otherwise you might need to call it with ./eat (in case you are in the same directory as the executable).

Get the current menu for mensa-garching (You can also use the short name 'mg'):

$ eat mensa-garching
Menu for 'mensa-garching' on '2017-04-28':
-------------------------------------------------------------------
Bauerneintopf: 1€
Pfannkuchen mit Apfelmus: 1.55€
Gedünsteter Kabeljau (MSC) auf Buchweizen-Rote-Beete-Risotto: 4€

$ eat mg
Menu for 'mensa-garching' on '2017-04-28':
-------------------------------------------------------------------
Bauerneintopf: 1€
Pfannkuchen mit Apfelmus: 1.55€
Gedünsteter Kabeljau (MSC) auf Buchweizen-Rote-Beete-Risotto: 4€

Get the current menu for mensa-arcisstrasse on 2017-04-27:

$ eat -d 2017-04-27 mensa-arcisstrasse
Menu for 'mensa-arcisstrasse' on '2017-04-27':
------------------------------------------------------------------
Reistopf mit Chinagemüse: 1€
Quinoa-Salat mit Nüssen, Gurke, Rucola und Mandeldressing: 2.4€
Grünes Hähnchen-Curry: 3.2€
Reistopf mit Chinagemüse (2): Self-Service
Pikante Nudelpfanne mit Schafskäse und Rindfleisch: Self-Service
Pasta mit Bärlauchpesto: Self-Service

eat's People

Contributors

jpbernius avatar srehwald avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jpbernius

eat's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.