Пример #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)
Пример #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)
Пример #3
0
def config(ctx, example):
    cmd = Cmd('config')
    cmd.execute(ctx.obj, output_example=example)
Пример #4
0
def exit(ctx):
    cmd = Cmd('exit')
    cmd.execute(ctx.obj)
Пример #5
0
def init(ctx):
    cmd = Cmd('init')
    cmd.execute(ctx.obj)
Пример #6
0
def clean(ctx):
    cmd = Cmd('clean')
    cmd.execute(ctx.obj)
Пример #7
0
def ls_package(ctx):
    cmd = Cmd('ls_package')
    cmd.execute(ctx.obj)
Пример #8
0
def ls(ctx):
    cmd = Cmd('ls')
    cmd.execute(ctx.obj)
Пример #9
0
def clean(ctx):
    '''Clean the current release version environment'''
    cmd = Cmd('clean')
    cmd.execute(ctx.obj)
Пример #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)
Пример #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)
Пример #12
0
def ls_package(ctx):
    '''List all packages of the current release versions'''
    cmd = Cmd('ls_package')
    cmd.execute(ctx.obj)
Пример #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)
Пример #14
0
def ls(ctx):
    '''List installed release versions'''
    cmd = Cmd('ls')
    cmd.execute(ctx.obj)
Пример #15
0
def version(ctx):
    '''Display version information'''
    cmd = Cmd('version')
    cmd.execute(ctx.obj)
Пример #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)
Пример #17
0
def init(ctx):
    '''Initialize cepcenv environment'''
    cmd = Cmd('init')
    cmd.execute(ctx.obj)
Пример #18
0
def ls_remote(ctx, softdef_repo):
    cmd = Cmd('ls_remote')
    ctx.obj['softdef_repo'] = softdef_repo
    cmd.execute(ctx.obj)
Пример #19
0
def home(ctx):
    '''Display home directory of cepcenv'''
    cmd = Cmd('home')
    cmd.execute(ctx.obj)
Пример #20
0
def use(ctx, default, version):
    cmd = Cmd('use')
    cmd.execute(ctx.obj, default=default, version_name=version)
Пример #21
0
def exit(ctx):
    '''Exit cepcenv environment completely'''
    cmd = Cmd('exit')
    cmd.execute(ctx.obj)
Пример #22
0
def version(ctx):
    cmd = Cmd('version')
    cmd.execute(ctx.obj)
Пример #23
0
def upgrade(ctx):
    '''Upgrade cepcenv to the latest version'''
    cmd = Cmd('upgrade')
    cmd.execute(ctx.obj)
Пример #24
0
def home(ctx):
    cmd = Cmd('home')
    cmd.execute(ctx.obj)
Пример #25
0
def config(ctx, example):
    '''Display user configuration'''
    cmd = Cmd('config')
    cmd.execute(ctx.obj, output_example=example)
Пример #26
0
def upgrade(ctx):
    cmd = Cmd('upgrade')
    cmd.execute(ctx.obj)
Пример #27
0
def config_release(ctx, version):
    cmd = Cmd('config_release')
    cmd.execute(ctx.obj, version_name=version)
Пример #28
0
def config_version(ctx, version):
    cmd = Cmd('config_version')
    cmd.execute(ctx.obj, version_name=version)
Пример #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)