# Path: mod/log.py
# RED = '\033[1;31m'
# GREEN = '\033[1;32m'
# YELLOW = '\033[1;33m'
# BLUE = '\033[1;36m'
# DEF = '\033[0;0m'
# def error(msg, fatal=True) :
# def warn(msg) :
# def ok(item, status) :
# def failed(item, status) :
# def optional(item, status) :
# def info(msg) :
# def colored(color, msg) :
# 
# Path: mod/util.py
# def fix_path(path) :
# def get_workspace_dir(fips_dir) :
# def get_project_dir(fips_dir, proj_name) :
# def get_build_root_dir(fips_dir, proj_name):
# def get_deploy_root_dir(fips_dir, proj_name):
# def get_build_dir(fips_dir, proj_name, cfg) :
# def get_deploy_dir(fips_dir, proj_name, cfg) :
# def get_fips_dir(proj_dir, name):
# def get_configs_dir(proj_dir):
# def get_verbs_dir(proj_dir):
# def get_generators_dir(proj_dir):
# def get_toolchains_dir(proj_dir):
# def get_giturl_from_url(url) :
# def get_gitbranch_from_url(url) :
# def get_project_name_from_url(url) :
# def get_project_name_from_dir(proj_dir) :
# def load_fips_yml(proj_dir) :
# def lookup_target_cwd(proj_dir, target) :
# def is_valid_project_dir(proj_dir) :
# def ensure_valid_project_dir(proj_dir) :
# def is_git_url(url) :
# def confirm(question) :
# def url_download_hook(count, block_size, total_size) :
# def get_host_platform() :
# def get_cfg_target_list(fips_dir, proj_dir, cfg):
# def get_cfg_headersdirs_by_target(fips_dir, proj_dir, cfg):
# def get_cfg_defines_by_target(fips_dir, proj_dir, cfg):
# def get_num_cpucores():
# 
# Path: mod/settings.py
# def load(proj_dir) :
# def save(proj_dir, settings) :
# def get_default(key) :
# def get(proj_dir, key) :
# def set(proj_dir, key, value) :
# def unset(proj_dir, key) :
# def get_all_settings(proj_dir):


from mod import log, util, settings
        elif noun == 'target' :
            if len(args) > 1 :
                target_name = args[1]
                settings.set(proj_dir, 'target', target_name)
            else :
                log.error('expected target name')
        elif noun == 'jobs' :
            if len(args) > 1 :
                num_jobs = args[1]
                if num_jobs.isdigit() :
                    settings.set(proj_dir, 'jobs', int(num_jobs))
                else :
                    log.error("value for setting 'jobs' must be a number")
            else :
                log.error('expected number of build jobs value')
        elif noun == 'ccache' :
            if len(args) > 1 :
                use_ccache = args[1]
                if use_ccache == 'on' :
                    settings.set(proj_dir, 'ccache', True)
                elif use_ccache == 'off' :
                    settings.set(proj_dir, 'ccache', False)
                else :
                    log.error("value for setting 'ccache' must be 'on' or 'off")
        elif noun == 'local':
            if len(args) > 1:
                is_local = args[1]
                if is_local == 'on':
                    settings.set(proj_dir, 'local', True)
                elif is_local == 'off':

# Path: mod/log.py
# RED = '\033[1;31m'
# GREEN = '\033[1;32m'
# YELLOW = '\033[1;33m'
# BLUE = '\033[1;36m'
# DEF = '\033[0;0m'
# def error(msg, fatal=True) :
# def warn(msg) :
# def ok(item, status) :
# def failed(item, status) :
# def optional(item, status) :
# def info(msg) :
# def colored(color, msg) :
# 
# Path: mod/util.py
# def fix_path(path) :
# def get_workspace_dir(fips_dir) :
# def get_project_dir(fips_dir, proj_name) :
# def get_build_root_dir(fips_dir, proj_name):
# def get_deploy_root_dir(fips_dir, proj_name):
# def get_build_dir(fips_dir, proj_name, cfg) :
# def get_deploy_dir(fips_dir, proj_name, cfg) :
# def get_fips_dir(proj_dir, name):
# def get_configs_dir(proj_dir):
# def get_verbs_dir(proj_dir):
# def get_generators_dir(proj_dir):
# def get_toolchains_dir(proj_dir):
# def get_giturl_from_url(url) :
# def get_gitbranch_from_url(url) :
# def get_project_name_from_url(url) :
# def get_project_name_from_dir(proj_dir) :
# def load_fips_yml(proj_dir) :
# def lookup_target_cwd(proj_dir, target) :
# def is_valid_project_dir(proj_dir) :
# def ensure_valid_project_dir(proj_dir) :
# def is_git_url(url) :
# def confirm(question) :
# def url_download_hook(count, block_size, total_size) :
# def get_host_platform() :
# def get_cfg_target_list(fips_dir, proj_dir, cfg):
# def get_cfg_headersdirs_by_target(fips_dir, proj_dir, cfg):
# def get_cfg_defines_by_target(fips_dir, proj_dir, cfg):
# def get_num_cpucores():
# 
# Path: mod/settings.py
# def load(proj_dir) :
# def save(proj_dir, settings) :
# def get_default(key) :
# def get(proj_dir, key) :
# def set(proj_dir, key, value) :
# def unset(proj_dir, key) :
# def get_all_settings(proj_dir):


# Path: verbs/set.py
from mod import log, util, settings

        elif noun == 'target' :
            if len(args) > 1 :
                target_name = args[1]
                settings.set(proj_dir, 'target', target_name)
            else :
                log.error('expected target name')
        elif noun == 'jobs' :
            if len(args) > 1 :
                num_jobs = args[1]
                if num_jobs.isdigit() :
                    settings.set(proj_dir, 'jobs', int(num_jobs))
                else :
                    log.error("value for setting 'jobs' must be a number")
            else :
                log.error('expected number of build jobs value')
        elif noun == 'ccache' :
            if len(args) > 1 :
                use_ccache = args[1]
                if use_ccache == 'on' :
                    settings.set(proj_dir, 'ccache', True)
                elif use_ccache == 'off' :
                    settings.set(proj_dir, 'ccache', False)
                else :
                    log.error("value for setting 'ccache' must be 'on' or 'off")
        elif noun == 'local':
            if len(args) > 1:
                is_local = args[1]
                if is_local == 'on':
                    settings.set(proj_dir, 'local', True)
                elif is_local == 'off':

                    settings.set(proj_dir, 'local', False)