ulmensa
A command-line tool that fetches and shows the current meal plans from Ulm University's canteen.
Features
- Fetch current and upcoming meal plans
- Display nutritional information for meals
- Multiple output formats (plain text and JSON)
- Configurable date range for meal planning
Installation
Usage
Options
-n, --nutritional-info: Display additional nutritional values for each meal-d, --days <DAYS>: Show meal plans for specified number of days ahead (default: 0)-j, --json: Output the meal plan in JSON format-s, --searchterm <SEARCHTERM>: Search term for a specific meal. Returns true if found, false otherwise-h, --help: Display help information-V, --version: Show version information
Examples
Display today's meal plan:
Show meals with nutritional information:
Get meal plans for the next 5 days in JSON format:
Output Formats
Plain Text
By default, the program outputs meal plans in a human-readable text format.
JSON
When using the --json flag, the output will be formatted as JSON, making it suitable for parsing and integration with other tools.
Building from Source
- Clone the repository
- Run
cargo build --release - The binary will be available in
target/release/ulmensa
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the GPL License - see the LICENSE file for details.