mise API - v0.0.0
    Preparing search index...

    Function pipelineFile_getTextByPath

    • Downloads a pipeline source file and returns it as a UTF-8 string.

      This is a convenience wrapper around pipelineFile_getByPath() that converts the Buffer to a string. Suitable for YAML/text files.

      Parameters

      • filePath: string

        The full path to the pipeline file, e.g., /PIPELINES/user/pipeline.yml

      Returns Promise<Result<string>>

      A Result containing the file content as a string, or an error.

      const result = await pipelineFile_getTextByPath('/PIPELINES/user/config.yml');
      if (result.ok) {
      const yamlContent: string = result.value;
      // Parse YAML content
      }