# Functions

DeleteOutput removes an output from the file entirely.
DeleteSecret removes a secret from the file entirely.
FormatKeyValue handles formatting for .env and .out files.
ParseKeyValue parses a key-value pair from a string and returns the key and value.
ReadLines reads lines from a file and returns them as a slice of strings.
SetErrorMetadata sets the error message, error code, and error category, writing them to the CI_ERROR_METADATA file.
SetOutput sets a new secret by adding it to the DRONE_OUTPUT file.
SetSecret sets a new secret by adding it to the HARNESS_OUTPUT_SECRET_FILE file.
UpdateOrRemoveKeyValue updates or deletes a key-value pair in the specified file.
UpdateOutput overwrites the value of an existing output.
UpdateSecret overwrites the value of an existing secret.
WriteLines writes a slice of strings to a file, each string being written to a new line.

# Constants

DroneOutputFile is the key for the file where outputs can be exported and utilized in the subsequent steps in Harness CI pipeline.
ErrorCategoryKey is the key used to classify the category of the error, which can help in grouping similar types of errors.
ErrorCodeKey is the key used to identify the specific error code associated with an error.
ErrorMessageKey is the key used to retrieve or store the error message content.
HarnessOutputSecretFile is the key for the file where secrets can be exported and utilized in the subsequent steps in Harness CI pipeline.
MetadataFile is the key for the file that stores metadata associated with an error, such as details about the error's source or context.