github.com/facebookincubator/ttpforge@v1.0.13-0.20240405153150-5ae801628835/example-ttps/actions/inline/basic.yaml (about) 1 --- 2 api_version: 2.0 3 uuid: 69f62d37-d68c-4a37-a3e2-871d1f292717 4 name: inline_basic 5 description: | 6 This TTP shows you how to use the inline action type to 7 run basic shell commands. 8 steps: 9 - name: one_line_demo 10 inline: echo 'By default, `inline:` will pass commands that you specify to `bash`' 11 - name: multi_line_demo 12 inline: | 13 echo "You can use multi_line YAML strings like this" 14 echo "To specify multiple commands." 15 echo "TTPForge will execute all of the commands that you specify," 16 echo "rather like a shell script." 17 - name: changing_executor 18 executor: python3 19 inline: | 20 msg = """You can change the `executor:` field to 21 pass your `inline:` input to a different program. 22 This example will be executed by `python3`""" 23 print(msg)