jshn: refactor main into smaller pieces
authorPetr Štetiar <ynezz@true.cz>
Sat, 23 Nov 2019 21:27:46 +0000 (22:27 +0100)
committerPetr Štetiar <ynezz@true.cz>
Sun, 24 Nov 2019 12:26:58 +0000 (13:26 +0100)
commit93848ec96dc58bbeb4bb3ed84fa5848ce5a04667
treee254fb016aa36a35dcad61cc520421952b4c83d6
parent9b6ede0e5312071400e6b009c6b92413061bbfaa
jshn: refactor main into smaller pieces

Turn longer switch cases into separate functions in order to make it
easier to follow. Don't return from the cases as it makes future
cleaning up harder.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
jshn.c