util

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(s []string, str string) bool

func DetectEditor

func DetectEditor() string

func GenrateUuidV4

func GenrateUuidV4() (string, error)

func GetInputByEditor added in v0.3.0

func GetInputByEditor(param *GetInputByEditorParam) (string, error)

func HasFlag

func HasFlag(ctx *cli.Context, flags ...string) bool

func IsWSL added in v0.3.2

func IsWSL() bool

func OpenUrlInBrowser added in v0.3.2

func OpenUrlInBrowser(url string)

Types

type GetInputByEditorParam added in v0.3.0

type GetInputByEditorParam struct {
	Current string
}

Jump to

Keyboard shortcuts

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