Skip to content

Commit

Permalink
Add grc for colouring
Browse files Browse the repository at this point in the history
  • Loading branch information
jaseemabid committed Sep 26, 2018
1 parent 977a93a commit 5fb3e5f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions grc/.grc/conf.tfplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# The following matches terraform plan changes and aims to colorize
# those that show changes.
#
# Example:
# alias.3346967081.evaluate_target_health: "" => "false"
# alias.3346967081.name: "" => "somednsname.eu-west-1.elb.amazonaws.com"
# alias.3346967081.zone_id: "" => "some-zone"
#
# Changes which stay the same are colored green, whereas those that
# have changed are colored red. Changes which are due to AWS
# computed values are colored blue.

regexp=\s+(?:[^:])+:\s+"(.*)" => "\1"
colour=green
count=stop
-
regexp=\s+(?:[^:])+:\s+"(.*)" => <computed>
colour=blue
count=stop
-
regexp=\s+(?:[^:])+:\s+"(.*)" => "(.*)"
colour=red,bold red,bold red
count=stop
3 changes: 3 additions & 0 deletions grc/.grc/grc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Terraform
\bterraform plan\b
conf.tfplan

0 comments on commit 5fb3e5f

Please sign in to comment.