-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Complementary to existing failed and succeeded block, let's add then block that will run after certain command. This then block will carry status exit code within a parameter.
Describe the solution you'd like
Ability to simply
$ my command --flag $ then(arg) {
echo "My command finished with {arg} exit code"
}
Rules:
- If function has
thenblock, then notrustcommand modifier is required. This syntax means that the developer wants to handle the exit code by themselves. thenis run no matter what function / command exit code is.- Developer can NOT chain
failed,succeededandthenblocks at the same time for a single failable expression - When
thenis used without a variable name wrapped around parentheses, appropriate error is raised. There is no point of running this block in this case.
lens0021Copilot
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request