[PATCH 4/6] programs/cmd: Use a context when handling input from command line (/c, /k).