command: implement command completion