gozdrofit-cli

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2022 License: MIT Imports: 8 Imported by: 0

README

Build Status Coverage Status

Unofficial command line tool for Zdrofit Polska API.


Commands

book
  • Usage without Docker
gozdrofit-cli book --url=https://example.com/ --username=username@mail.com --password=password --class.club-id=1 --class.name=Sztangi --class.date=2021-08-15 --class.hour-from=16 --class.hour-to=20
  • Usage with Docker
docker pull pochrymowicz/gozdrofit-cli:latest
docker run pochrymowicz/gozdrofit-cli:latest book --url=https://example.com/ --username=username --password=password --class.club-id=1 --class.name=Sztangi --class.date=2021-08-15 --class.hour-from=16 --class.hour-to=20

This command will book a class named Sztangi in club id 1 at 2021-08-15, and it will perform a lookup for a class with start time between 16 and 20 (4PM and 8PM).

  • Arguments
Argument Description Example Required
url Zdrofit API base url https://example.com/ true
username Zdrofit username login@mail.com true
password Zdrofit password password true
class.club-id Zdrofit club id 1 default club id from Zdrofit profile will be used if not specified
class.name Case-insensitive class name to book Sztangi true
class.date Class date YYYY-MM-DD 2021-01-01 true
class.hour-from Class start hour low bound (24h) (inclusive) 16 true
class.hour-to Class start hour high bound (24h) (inclusive) 16 true
debug Turn on debug logging
dry-run Dry run

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL