cli: Added a couple template functions