cli: introducing new internal function (getline)