예제 #1
0
/**
 * function for adding and commiting all modules and templates
 * @param   array   options from cli env
 */
function cos_git_commit_module_single($options)
{
    $path = conf::pathModules() . "/{$options['repo']}";
    if (!cos_git_is_repo($path)) {
        common::abort("Module: {$options['repo']} is not a git repo. Specify installed module name (e.g. 'settings') when commiting");
    }
    $p = new profile();
    $mod = $p->getModule($options['repo']);
    cos_git_commit($mod, 'module');
}