Alex Lopez <https://github.com/alopezz> just landed a major contribution yesterday: Mach commands are now standalone functions <https://bugzilla.mozilla.org/show_bug.cgi?id=1696251>.
This simplifies the commands as well as their associated tests - additional details can be found in the Tooling Announcement <https://discourse.mozilla.org/t/mach-command-are-now-classless/86250>. For a taste of what our brand new, beautiful, modern future looks like, see the comparison between before: @CommandProviderclass Foo(MachCommandBase): @Command("foo", category="misc") @CommandArgument("--bar") def foo(self, bar): print(self.topsrcdir, bar) And after: @Command("foo", category="misc")@CommandArgument("--bar")def foo(command_context, bar): print(command_context.topsrcdir, bar) I hope that this improvement will "Mach" your day better 😉 Thanks for your great work Alex! -- Mitchell Hentges Engineering Efficiency Mozilla -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAAvot88QvwW0%2BHwGeNGH1_HnaKbhEtYEfhjkddMiEL76d8L1rA%40mail.gmail.com.
