Commit 230b2e7d authored by brizental's avatar brizental
Browse files

BB 45308: Implement ./mach yeet command

./mach yeet is the Tor Project version of try -- but much simpler.
parent 722a5873
Loading
Loading
Loading
Loading
+1 −0
Changes for python/mach/mach/command_util.py: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -291,6 +291,7 @@ MACH_COMMANDS = {
    "xpcshell-test": MachCommandReference(
        "testing/xpcshell/mach_commands.py", ["test"]
    ),
    "yeet": MachCommandReference("tools/yeet/mach_commands.py"),
}


+20 −0
Changes for tools/yeet/mach_commands.py: 20 added lines, 0 removed lines.
Original line number Diff line number Diff line
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import sys
from pathlib import Path

from mach.decorators import Command # noqa: I001


@Command(
    "yeet",
    category="ci",
    description="TODO: build / test remotely from the current state of the repo.",
)
def yeet(command_context):
    # TODO: this will be the main "yeet" command -- push, build and (maybe)
    # test remotely from the current state of the local repo, rather than
    # requiring an already-published build like `yeet remote` does.
    pass