cli: Refactor the statements in runPause.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>