Page MenuHomePhabricator

Support dynamic command names
Closed, ResolvedPublic2 Story Points

Description

A command class might not know the name under which it was invoked.

This is especially true for things like Helpmebot's brain commands, or EyeInTheSky' templates.

Both of these examples need to be able to see the name under which it was invoked, and take action based on that name. Notably, this is *not* designed as a way to implement a switch(){} block, but more as a take a defined action based on this parameter, which is provided as the command name, not as a formal parameter.

Related Objects

StatusAssignedTask
Resolvedswalker
ResolvedNone