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.

Revisions and Commits

Related Objects

StatusAssignedTask
Resolvedswalker
ResolvedNone

Event Timeline

swalker triaged this task as Normal priority.Apr 16 2018, 11:40 AM
swalker created this task.
Diffusion closed this task as Resolved by committing Restricted Diffusion Commit.Apr 16 2018, 5:59 PM
Diffusion added a commit: Restricted Diffusion Commit.