Coder Social home page Coder Social logo

ntnu-checkin's Introduction

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

ntnu-checkin's People

Contributors

odinuge avatar

Stargazers

Sondre Grav Skjåstad avatar Anders Granås avatar

Watchers

James Cloos avatar  avatar

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.