Closed aSapien closed 6 years ago
@aSapien Hi, currently it's not possible to have context resolved asynchronously. I guess you have to use work around like let email = await context.getEmail();
for this purpose.
Got it. Thanks, @vilic!
btw, I would like to offer my greatest gratitude for developing this lib. I think this may be the only CLI node library that isn't tightly coupled to a process and/or stdio
.
Chapeau 🎩
@aSapien Thanks, it's really nice to know that you enjoy this idea!
Hi @vilic,
Is it possible to cast a
ContextExtension
parameter?Example:
Defined a Class with a
cast()
function that takes Slack user_id and resolves a user email:Defined a command that expects a
SlackResolvedUserCommandContext
(defined below)Appreciate the assistance, Sapien