ulmensa

Crates.ioulmensa
lib.rsulmensa
version0.1.1
created_at2025-01-20 21:15:23.080517+00
updated_at2025-11-28 13:14:51.333582+00
descriptionA command-line tool that fetches and shows the current meal plans from Ulm University's canteen.
homepage
repositoryhttps://codeberg.org/structix/ulmensa
max_upload_size
id1524326
size104,574
Janek (STRUCTiX)

documentation

README

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

cargo install ulmensa

Usage

ulmensa [OPTIONS]

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:

ulmensa

Show meals with nutritional information:

ulmensa --nutritional-info

Get meal plans for the next 5 days in JSON format:

ulmensa --days 5 --json

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

  1. Clone the repository
  2. Run cargo build --release
  3. 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.

Commit count: 0

cargo fmt