preprocess

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package preprocess provides facilities to expand environment variables in `.l2` API files and return the contents

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreprocessLamaFile

func PreprocessLamaFile(input_f string) (string, string)

PreprocessLamaFile takes in a path to an API file. It moves into the API file directory, reads the API contents, loads the `l2.env` file if available, and finally substitutes environment vars in the API contents Once done, it reverts back to the original directory, and returns the processed l2 file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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