Skip to content

Instantly share code, notes, and snippets.

@ryanpedersen42
Last active March 22, 2022 15:09
Show Gist options
  • Save ryanpedersen42/8c657c858fd05072c9b11aad73d265d6 to your computer and use it in GitHub Desktop.
Save ryanpedersen42/8c657c858fd05072c9b11aad73d265d6 to your computer and use it in GitHub Desktop.
Scalars and Chomp Modifiers Examples
# pipes and folded scalars
pipe: |
Farm boy, fill these with water
As you wish.
pipe_example: |
docker build -t $DOCKER_REPOSITORY:$TAG .
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin
docker push $DOCKER_REPOSITORY:$TAG
folded_scalar: >
Hello, my name is Inigo
Montoya. You killed
my father. Prepare
to die.
# clips, strips, and keeps
strip_pipe: |-
a demo to
test
clip_pipe: |
a demo to
test
keep_pipe: |+
a demo to
test
strip_folded: >-
a demo to
test
clip_folded: >
a demo to
test
keep_folded: >+
a demo to
test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment