Exemple #1
0
def mark(runs, clear=False, cwd=".", guild_home=None, **kw):
    from guild import click_util
    from guild.commands import runs_impl
    args = click_util.Args(runs=(runs or []), clear=clear, yes=True)
    _apply_runs_filters(kw, args)
    _assert_empty_kw(kw, "mark()")
    with Env(cwd, guild_home):
        runs_impl.mark(args)
Exemple #2
0
def mark(run, clear=False, cwd=".", guild_home=None):
    from guild import click_util
    from guild.commands import mark
    from guild.commands import runs_impl
    args = [run, "--yes"]
    if clear:
        args.append("--clear")
    ctx = mark.mark.make_context("", args)
    args = click_util.Args(**ctx.params)
    with Env(cwd, guild_home):
        return runs_impl.mark(args, ctx)