Skip to content

Commit

Permalink
Add note for bxl dynamic actions impl function argument
Browse files Browse the repository at this point in the history
Summary:
The first argument of the impl function for dynamic actions must be bxl_ctx. However, this requirement is not mentioned in the documentation.

This diff adds a note to clarify it.

Reviewed By: iguridi

Differential Revision: D68860764

fbshipit-source-id: 19b00fb3d3568ac7c7522bdf499dbe687bac4f55
  • Loading branch information
Nero5023 authored and facebook-github-bot committed Jan 29, 2025
1 parent ffeeb13 commit 25d9ecc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ dynamic attributes can be found [here](../../../api/build/dynattrs)

We need to declare all arguments defined in step3 and bxl context.

**Note:** The name of the first argument in the impl function must be `bxl_ctx`.

We can read the `file` content by `read_string()` or `read_json()`. Details can
be found [here](../../../api/build/ArtifactValue/)

Expand Down

0 comments on commit 25d9ecc

Please sign in to comment.