Skip to content

Commit

Permalink
Merge pull request #32 from rsteube/add-message
Browse files Browse the repository at this point in the history
added message macro
  • Loading branch information
rsteube authored May 5, 2022
2 parents b2e7b4d + 372cf87 commit 042b8c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func parseAction(cmd *cobra.Command, arr []string) carapace.Action {
}))
addCoreMacro("files", MacroVarI(carapace.ActionFiles))
addCoreMacro("directories", MacroN(carapace.ActionDirectories))
addCoreMacro("message", MacroI(carapace.ActionMessage))
addCoreMacro("", MacroI(func(s string) carapace.Action {
return carapace.ActionCallback(func(c carapace.Context) carapace.Action {
return carapace.ActionExecCommand("sh", "-c", s)(func(output []byte) carapace.Action {
Expand Down

0 comments on commit 042b8c5

Please sign in to comment.