condition

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arch

func Arch(s ...string) func(c carapace.Context) bool

Arch returns true if any of the given strings matches `runtime.GOARCH`.

func CompletingPath

func CompletingPath(c carapace.Context) bool

CompletingPath returns true when `Context.Value` has a path prefix.

func CompletingPathS

func CompletingPathS(c carapace.Context) bool

CompletingPathS is like CompletingPathS but also checks for path separator `/`

func Executable

func Executable(s ...string) func(c carapace.Context) bool

Excutable returns true if any of the given strings matches an executable in PATH.

func File

func File(s string) func(c carapace.Context) bool

Retuns true if given string is a valid file or directory.

func Os

func Os(s ...string) func(c carapace.Context) bool

Arch returns true if any of the given strings matches `runtime.GOOS`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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