Refactor: tools: Functionize reading input in cibadmin.c
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>