GitXplorerGitXplorer
o

ntnu-checkin

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
ae26a2bc8032b454392edef6860e2f3c6663b9f7

Fix typo

oodinuge committed 4 years ago
Verified
bd8da72c46102af534e22543fcb567bca42eff19

Remove todos

oodinuge committed 4 years ago
Verified
efe2592c4db66df3f73c41a28f2dbc72ebc9619e

Add support for get/list and delete

oodinuge committed 4 years ago
Verified
64935d62e009ba722de9d58a7f22f484ae464e32

Add better time support

oodinuge committed 4 years ago
Verified
ad194df8d2ace0cbf0984373409cf37ee50d8f03

Update readme

oodinuge committed 4 years ago
Verified
f3667a4b9c9af1c7b88c5373a7a6ce654b4afd87

Initial commit

oodinuge committed 4 years ago

README

The README file for this repository.

ntnu-checkin (-cli)

Simple and dumb cli for ntnu checkin

THIS IS NOT AFFILIATED WITH NTNU IN ANY WAY, AND COMES WITH NO SUPPORT

(I do however think it is better that people check in via the CLI instead of not doing it..)

$ go get github.com/odinuge/ntnu-checkin
$ export FEIDE_USERNAME=user
$ export FEIDE_PASSWORD=pass

$ ntnu-checkin search gamle elektro
ROOM-ID    NAME
3066       Sanntidssalen Gamle elektro Gløshaugen
3129       G012 Gamle elektro Gløshaugen
14894      EL6 Gamle elektro Gløshaugen
3062       EL3 Gamle elektro Gløshaugen
3070       EL2 Gamle elektro Gløshaugen
3078       EL1 Gamle elektro Gløshaugen
3144       G038 Gamle elektro Gløshaugen
3143       G034 Gamle elektro Gløshaugen
3136       G022 Gamle elektro Gløshaugen
14893      EL5 Gamle elektro Gløshaugen

$ ntnu-checkin checkin --room=14894 --from=07:00 --to=18:00
Checked in to EL5 Gamle elektro Gløshaugen from 07:00 to 18:00: OK

$ ntnu-checkin get
CHECKIN-ID                START              END                ROOM-ID      LOCATION
6035fec4c2a0412c2336fe92  Wed Feb 24 07:00   Wed Feb 24 18:00   14894        EL6 Gamle elektro Gløshaugen

$ ntnu-checkin delete 6035fec4c2a0412c2336fe92
Deleted checkin 6035fec4c2a0412c2336fe92: Checkin deleted.

$ ntnu-checkin
Usage of ntnu-checkin:
  ntnu-checkin checkin --room=<room-id> --from=07:00 --to=23:00
    to checkin
  ntnu-checkin search [query]
    to search for rooms
  ntnu-checkin get
    to list checkins
  ntnu-checkin delete [chckin-id]
    to delete checkins

TODO

  • (Better) Error handling
  • Don't auth each time (works for now)
  • Don't auth before printing usage