utils

package
v1.0.1-0...-d51900f Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyConfigFile

func ApplyConfigFile(filePath string, options ...interface{}) error

func ApplyDefaultValues

func ApplyDefaultValues(struct_ interface{}) (err error)

func ApplyFlags

func ApplyFlags(
	flags []cli.Flag,
	mappingHint map[string]string,
	c *cli.Context,
	options ...interface{},
)

func DeleteBel

func DeleteBel(data []byte) (result []byte)

DeleteBel Check whether the user presses tab

func DeleteBs

func DeleteBs(data []byte) (result []byte)

DeleteBs Check whether the user presses bs

func EqualNR

func EqualNR(data []byte) bool

EqualNR Check whether it is enter

func EqualNRForZsh

func EqualNRForZsh(data []byte) bool

EqualNRForZsh Check whether it is enter for zsh

func EqualTwoSliceByBack

func EqualTwoSliceByBack(data []byte) bool

EqualTwoSliceByBack Check whether the user presses the delete key

func EqualTwoSliceByClear

func EqualTwoSliceByClear(data []byte) bool

EqualTwoSliceByClear Check whether the user presses clear

func EqualTwoSliceByCtrlL

func EqualTwoSliceByCtrlL(data []byte) bool

EqualTwoSliceByCtrlL Check whether the user presses CTRL +L

func EqualTwoSliceByLine

func EqualTwoSliceByLine(data []byte) bool

func ExistBytes

func ExistBytes(data []byte) bool

ExistBytes judge the head whether or not exist [27,91,67]

func ExistVi

func ExistVi(s string) bool

ExistVi judge the string exist vi/vim/sudo vi/sudo vim

func ExistZshOutPut

func ExistZshOutPut(data []byte) bool

ExistZshOutPut Whether the ZSH return data prefix exists

func FilterOutput

func FilterOutput(data []byte) bool

func GenerateFlags

func GenerateFlags(options ...interface{}) (flags []cli.Flag, mappings map[string]string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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