shell-escape

Invicton-Labs/shell-escape/null

Terraform Module HCL NULL
Install
module "shell-escape" {
source = "Invicton-Labs/shell-escape/null"
version = "0.1.0"
}
plain text: /constructs/tfmod-invicton-labs-shell-escape-null/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Shell Escape This module escapes a string for use in either a Unix shell or Windows PowerShell. It will always escape the following characters: - Newline literal -> ``` \n `` (Unix), `` n ``` (PowerShell) - Carriage return literal -> (removed for Unix), `` r ``` (PowerShell) - Tab literal -> `` \t `` (Unix), `` \t `` (PowerShell) - `` ``` -> `` \ ``` (Unix), `` `` (PowerShell) - " -> `` \" `` (Unix), `` " ``` (PowerShell) - $ -> `` \$ `` (Unix), `` $ ``` (PowerShell) For Unix, it will also escape: - \ -> `` \\ `` Usage ` module "shell-escape" { source = "Invicton-Labs/shell-escape/null" string = <<EOF This is a multi-line string. This line is indented with a tab. Here are "double quotes", and here are backticks. We also have a couple dollar signs ($$$). EOF } output "escaped_stri

Inputs (3)
NameTypeDescriptionDefault
stringstringThe string to escape. required
powershell_replace_unix_escape_sequencesboolWhether to replace Unix escape sequences with escaped versions of the PowerShellfalse
unix_replace_powershell_escape_sequencesboolWhether to replace Powershell escape sequences with escaped versions of the Unixfalse
Outputs (2)
unix — The Unix-escaped string.
powershell — The PowerShell-escaped string.
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.0
Cloud NULL
Total downloads887
Inputs3
Outputs2
NamespaceInvicton-Labs
Updated