smheidrich / kitphysikpool-logout

logs you out of all other shared KIT physics department computers ("Poolraum-PCs")
0 stars 0 forks source link

Command-line options for entire script #10

Open smheidrich opened 8 years ago

smheidrich commented 8 years ago

Command-line options would be nice, e.g. for (updated list, see comments below):

Should be done using GNU getopt (not getopts!).

smheidrich commented 8 years ago

The possibility to disable automatic SSH key generation together with one that disables the localhost check should be enough to answer "yes" to #9, provided that the user has SSH properly set up.

We could combine both of these options into another (additional) option like --outside-pool, because that is all that's needed.

smheidrich commented 8 years ago

Basic CLI options implemented in https://github.com/smheidrich/kitphysikpool-logout/commit/318a4dff5f1f918bd45d45b812f3cb219e37a31a, but there are still some missing.

The --outside-pool option I mentioned above is called --remote, but it only works from inside the KIT network (otherwise the pool computers' FQDNs don't resolve to anything).

smheidrich commented 8 years ago

The options that are still missing are pretty much pointless if there is not going to be support for running this from outside the pool: Inside the pool, the SSH username is always the same as the current username (whoami) and there is no need to change the hostname pattern. Probably won't implement the "missing" options anytime soon.