[PATCH v2 07/36] cli: Convert cread_line() to use a struct for the main vars