Example #1
0
def platform(ctx, all, title, arch, os, compiler, platform, version):
    cmd = Cmd('platform')
    cmd.execute(ctx.obj,
                output_all=all,
                output_title=title,
                output_arch=arch,
                output_os=os,
                output_compiler=compiler,
                output_platform=platform,
                version_name=version)
Example #2
0
def install(ctx, release_repo, release_infodir, source, force, yes, no_clean,
            clean_only, version):
    '''Install specified release version'''
    cmd = Cmd('install')
    ctx.obj['release_repo'] = release_repo
    ctx.obj['release_infodir'] = release_infodir
    cmd.execute(ctx.obj,
                source=source,
                force=force,
                yes=yes,
                no_clean=no_clean,
                clean_only=clean_only,
                version_name=version)
Example #3
0
def config(ctx, example):
    cmd = Cmd('config')
    cmd.execute(ctx.obj, output_example=example)
Example #4
0
def exit(ctx):
    cmd = Cmd('exit')
    cmd.execute(ctx.obj)
Example #5
0
def init(ctx):
    cmd = Cmd('init')
    cmd.execute(ctx.obj)
Example #6
0
def clean(ctx):
    cmd = Cmd('clean')
    cmd.execute(ctx.obj)
Example #7
0
def ls_package(ctx):
    cmd = Cmd('ls_package')
    cmd.execute(ctx.obj)
Example #8
0
def ls(ctx):
    cmd = Cmd('ls')
    cmd.execute(ctx.obj)
Example #9
0
def clean(ctx):
    '''Clean the current release version environment'''
    cmd = Cmd('clean')
    cmd.execute(ctx.obj)
Example #10
0
def use(ctx, default, version):
    '''Switch environment to given release version'''
    cmd = Cmd('use')
    cmd.execute(ctx.obj, default=default, version_name=version)
Example #11
0
def pack(ctx, destination, version):
    '''Create tar packages for the specified release version'''
    cmd = Cmd('pack')
    cmd.execute(ctx.obj, destination=destination, version_name=version)
Example #12
0
def ls_package(ctx):
    '''List all packages of the current release versions'''
    cmd = Cmd('ls_package')
    cmd.execute(ctx.obj)
Example #13
0
def ls_remote(ctx, release_repo):
    '''List all available release versions'''
    cmd = Cmd('ls_remote')
    ctx.obj['release_repo'] = release_repo
    cmd.execute(ctx.obj)
Example #14
0
def ls(ctx):
    '''List installed release versions'''
    cmd = Cmd('ls')
    cmd.execute(ctx.obj)
Example #15
0
def version(ctx):
    '''Display version information'''
    cmd = Cmd('version')
    cmd.execute(ctx.obj)
Example #16
0
def install(ctx, softdef_repo, softdef_dir, version):
    cmd = Cmd('install')
    ctx.obj['softdef_repo'] = softdef_repo
    ctx.obj['softdef_dir'] = softdef_dir
    cmd.execute(ctx.obj, version_name=version)
Example #17
0
def init(ctx):
    '''Initialize cepcenv environment'''
    cmd = Cmd('init')
    cmd.execute(ctx.obj)
Example #18
0
def ls_remote(ctx, softdef_repo):
    cmd = Cmd('ls_remote')
    ctx.obj['softdef_repo'] = softdef_repo
    cmd.execute(ctx.obj)
Example #19
0
def home(ctx):
    '''Display home directory of cepcenv'''
    cmd = Cmd('home')
    cmd.execute(ctx.obj)
Example #20
0
def use(ctx, default, version):
    cmd = Cmd('use')
    cmd.execute(ctx.obj, default=default, version_name=version)
Example #21
0
def exit(ctx):
    '''Exit cepcenv environment completely'''
    cmd = Cmd('exit')
    cmd.execute(ctx.obj)
Example #22
0
def version(ctx):
    cmd = Cmd('version')
    cmd.execute(ctx.obj)
Example #23
0
def upgrade(ctx):
    '''Upgrade cepcenv to the latest version'''
    cmd = Cmd('upgrade')
    cmd.execute(ctx.obj)
Example #24
0
def home(ctx):
    cmd = Cmd('home')
    cmd.execute(ctx.obj)
Example #25
0
def config(ctx, example):
    '''Display user configuration'''
    cmd = Cmd('config')
    cmd.execute(ctx.obj, output_example=example)
Example #26
0
def upgrade(ctx):
    cmd = Cmd('upgrade')
    cmd.execute(ctx.obj)
Example #27
0
def config_release(ctx, version):
    cmd = Cmd('config_release')
    cmd.execute(ctx.obj, version_name=version)
Example #28
0
def config_version(ctx, version):
    cmd = Cmd('config_version')
    cmd.execute(ctx.obj, version_name=version)
Example #29
0
def config_release(ctx, version):
    '''Display release configuration of specified release version'''
    cmd = Cmd('config_release')
    cmd.execute(ctx.obj, version_name=version)