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)
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)
def config(ctx, example): cmd = Cmd('config') cmd.execute(ctx.obj, output_example=example)
def exit(ctx): cmd = Cmd('exit') cmd.execute(ctx.obj)
def init(ctx): cmd = Cmd('init') cmd.execute(ctx.obj)
def clean(ctx): cmd = Cmd('clean') cmd.execute(ctx.obj)
def ls_package(ctx): cmd = Cmd('ls_package') cmd.execute(ctx.obj)
def ls(ctx): cmd = Cmd('ls') cmd.execute(ctx.obj)
def clean(ctx): '''Clean the current release version environment''' cmd = Cmd('clean') cmd.execute(ctx.obj)
def use(ctx, default, version): '''Switch environment to given release version''' cmd = Cmd('use') cmd.execute(ctx.obj, default=default, version_name=version)
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)
def ls_package(ctx): '''List all packages of the current release versions''' cmd = Cmd('ls_package') cmd.execute(ctx.obj)
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)
def ls(ctx): '''List installed release versions''' cmd = Cmd('ls') cmd.execute(ctx.obj)
def version(ctx): '''Display version information''' cmd = Cmd('version') cmd.execute(ctx.obj)
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)
def init(ctx): '''Initialize cepcenv environment''' cmd = Cmd('init') cmd.execute(ctx.obj)
def ls_remote(ctx, softdef_repo): cmd = Cmd('ls_remote') ctx.obj['softdef_repo'] = softdef_repo cmd.execute(ctx.obj)
def home(ctx): '''Display home directory of cepcenv''' cmd = Cmd('home') cmd.execute(ctx.obj)
def use(ctx, default, version): cmd = Cmd('use') cmd.execute(ctx.obj, default=default, version_name=version)
def exit(ctx): '''Exit cepcenv environment completely''' cmd = Cmd('exit') cmd.execute(ctx.obj)
def version(ctx): cmd = Cmd('version') cmd.execute(ctx.obj)
def upgrade(ctx): '''Upgrade cepcenv to the latest version''' cmd = Cmd('upgrade') cmd.execute(ctx.obj)
def home(ctx): cmd = Cmd('home') cmd.execute(ctx.obj)
def config(ctx, example): '''Display user configuration''' cmd = Cmd('config') cmd.execute(ctx.obj, output_example=example)
def upgrade(ctx): cmd = Cmd('upgrade') cmd.execute(ctx.obj)
def config_release(ctx, version): cmd = Cmd('config_release') cmd.execute(ctx.obj, version_name=version)
def config_version(ctx, version): cmd = Cmd('config_version') cmd.execute(ctx.obj, version_name=version)
def config_release(ctx, version): '''Display release configuration of specified release version''' cmd = Cmd('config_release') cmd.execute(ctx.obj, version_name=version)