def use(ctx, software_root, default, option, without_package, version): '''Switch environment to given release version''' cmd = Cmd() ctx.obj['config_entry']['software_root'] = software_root ctx.obj['config_entry']['option'] = parse_lines(option) ctx.obj['config_entry']['scenario'] = version cmd.execute('use', ctx.obj, default, without_package)
def install(ctx, software_root, release_repo, release_source, option, reinstall, update, no_software, force, yes, version): '''Install specified release version''' cmd = Cmd() ctx.obj['config_entry']['software_root'] = software_root ctx.obj['config_entry']['release_repo'] = release_repo ctx.obj['config_entry']['release_source'] = release_source ctx.obj['config_entry']['option'] = parse_lines(option) ctx.obj['config_entry']['scenario'] = version cmd.execute('install', ctx.obj, reinstall, update, no_software, force, yes)
def config(ctx, version, option, config_type, item_list): '''Display configuration, mostly for debug purpose''' cmd = Cmd() ctx.obj['config_entry']['scenario'] = version ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('config', ctx.obj, config_type, item_list)
def pkg_edit(ctx, category, subdir, version, option, package): '''Edit package configuration''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('pkg-edit', ctx.obj, category, subdir, version, package)
def pkg_path(ctx, category, subdir, version, option, list_all, package): '''List package path''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('pkg-path', ctx.obj, category, subdir, version, list_all, package)
def pkg_config(ctx, category, subdir, version, option, package): '''List package config''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('pkg-config', ctx.obj, category, subdir, version, package)
def pkg_remove(ctx, category, subdir, version, option, force, package): '''Remove a package''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('pkg-remove', ctx.obj, category, subdir, version, force, package)
def pkg_build(ctx, category, subdir, version, option, rebuild, package): '''Build a package''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('pkg-build', ctx.obj, category, subdir, version, rebuild, package)
def pkg_use(ctx, category, subdir, version, option, package): '''Load a package''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('pkg-use', ctx.obj, category, subdir, version, package)
def pkg_install(ctx, category, subdir, version, category_origin, subdir_origin, version_origin, package, option, reinstall, yes): '''Install specified package''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) ctx.obj['config_entry']['reinstall'] = reinstall cmd.execute('pkg-install', ctx.obj, category, subdir, version, category_origin, subdir_origin, version_origin, package, yes)
def pkg_init(ctx, package_root, option, yes): '''Initialize a new package from directory''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('pkg-init', ctx.obj, package_root, yes)
def pkg_ls(ctx, list_all, option, package): '''List all packages of the current release versions''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('pkg-ls', ctx.obj, list_all, package)
def run(ctx, option, command): '''Run release command''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('run', ctx.obj, command)
def refresh(ctx, option): '''Refresh the current release version environment''' cmd = Cmd() ctx.obj['config_entry']['option'] = parse_lines(option) cmd.execute('refresh', ctx.obj)