Skip to content

Commit

Permalink
Docs: update TTP example snippets (facebookincubator#447)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookincubator#447

Update snippets to reference new TTP versions that use `type: path`
from now-landed commit

facebookincubator@246f1a2

Reviewed By: nicolagiacchetta

Differential Revision: D51520144

fbshipit-source-id: ca938ec53ee6dcb3243299c30d1a2faa7b0835ba
  • Loading branch information
d3sch41n authored and facebook-github-bot committed Nov 22, 2023
1 parent bf2fbb3 commit b02658a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/foundations/actions/edit_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ file - check out the examples below to learn more.
This example shows how to use the `append` and `delete` functionality of the
`edit_file` action:

https://github.com/facebookincubator/TTPForge/blob/0d62cf5139cb97686f4a6ef76fdf2bf7a30681be/example-ttps/actions/edit_file/append_delete.yaml#L1-L34
https://github.com/facebookincubator/TTPForge/blob/bf2fbb3312a227323d1930ba500b76f041329ca2/example-ttps/actions/edit_file/append_delete.yaml#L1-L35

You can experiment with the above TTP by installing the `examples` TTP
repository (skip this if `ttpforge list repos` shows that the `examples` repo is
Expand All @@ -32,7 +32,7 @@ You can also use `edit_file` to replace lines in a file and optionally use
powerful regular expressions to perform complex transformations. The next
example shows this functionality in action:

https://github.com/facebookincubator/TTPForge/blob/0d62cf5139cb97686f4a6ef76fdf2bf7a30681be/example-ttps/actions/edit_file/replace.yaml#L1-L46
https://github.com/facebookincubator/TTPForge/blob/bf2fbb3312a227323d1930ba500b76f041329ca2/example-ttps/actions/edit_file/replace.yaml#L1-L47

Try out the above TTP by running this command:

Expand Down

0 comments on commit b02658a

Please sign in to comment.