utils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package utils provides utilities for frizbee

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsYAMLFile added in v0.0.5

func IsYAMLFile(info fs.FileInfo) bool

IsYAMLFile returns true if the given file is a YAML file.

func Traverse added in v0.0.5

func Traverse(bfs billy.Filesystem, base string, fun TraverseFunc) error

Traverse traverses the given directory and calls the given function with each file.

func YAMLToBuffer

func YAMLToBuffer(wflow *yaml.Node) (fmt.Stringer, error)

YAMLToBuffer converts a YAML node to a string buffer

Types

type TraverseFunc added in v0.0.5

type TraverseFunc func(path string, info fs.FileInfo) error

TraverseFunc is a function that gets called with each file in a directory.

Directories

Path Synopsis
Package cli provides utilities for frizbee's CLI.
Package cli provides utilities for frizbee's CLI.

Jump to

Keyboard shortcuts

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