cleaner

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveCommas

func RemoveCommas(s string) string

RemoveCommas removes all commas from the provided string. This function is useful for cleaning command arguments that may contain invalid commas.

Parameters:

  • s: A string from which all commas should be removed.

Returns:

  • A string with all commas removed.

Example:

cmd := "terragrunt run-all plan --terragrunt-non-interactive -compact-warnings, -no-color, -lock=false"
cleanCmd := RemoveCommas(cmd)
fmt.Println(cleanCmd) // Output: "terragrunt run-all plan --terragrunt-non-interactive -compact-warnings -no-color -lock=false"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL