/** * shell callback function for commiting a single template * @param array $options array ('repo') */ function cos_git_commit_template_single($options) { $path = conf::pathHtdocs() . "/templates/{$options['repo']}"; if (!cos_git_is_repo($path)) { common::abort("Template: {$options['repo']} is not a git repo. Specify installed template (e.g. 'clean') name when commiting"); } $p = new profile(); $mod = $p->getTemplate($options['repo']); cos_git_commit($mod, 'template'); }