files

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover

func Discover(filePaths []string, recursive bool) ([]string, error)

Discover returns all file paths that come from file paths provided as the argument. Return directly if they are standard files. For directories list all files available in its root or recursively traverse all subdirectories and find files in them when the argument recursive is true. For "-" path that indicates standard input or starts with http:// or https://, it returns the path directly in the same way as other paths.

func Format

func Format(out io.Writer, format openslosdk.ObjectFormat, sources []string) error

Format formats multiple files and writes it to the provided writer, separated with "---".

func ReadObjects

func ReadObjects(sources []string) (map[string][]openslo.Object, error)

ReadObjects reads openslo.Object from the provided sources. It returns a map where the key is a file path and the value are objects read form this file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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