util

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(path string) (afero.Fs, func() error, error)

Open opens a file or directory and returns an afero.Fs, a function to close the file or directory, and an error if one occurred.

func SubcommandExactArgs

func SubcommandExactArgs(commands []string, n int) cobra.PositionalArgs

SubcommandExactArgs returns an error if there are not exactly n args after one of the given list of subcommands.

Types

This section is empty.

Jump to

Keyboard shortcuts

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