apputil

package
v0.0.0-...-9c55465 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyProxyEnv

func ApplyProxyEnv()

ApplyProxyEnv settings

func CmdConfigData

func CmdConfigData(nodes ...string) maputil.Data

CmdConfigData find.

eg:

CmdConfigData("git", "update") => read config by key: cmd_git_update

func CmdConfigData2

func CmdConfigData2(c *gcli.Command) maputil.Data

CmdConfigData2 find.

eg:

CmdConfigData2("git", "update") => read config by key: cmd_git_update

func CmdConfigKey

func CmdConfigKey(nodes ...string) string

CmdConfigKey build. eg: ("git", "update") => "cmd_git_update"

func GitCfgByCmdID

func GitCfgByCmdID(c *gcli.Command) (cfg *gitx.Config)

GitCfgByCmdID get

func NewSReader

func NewSReader(s string) *kautorw.SourceReader

NewSReader create.

func ReadSource

func ReadSource(s string) (string, error)

ReadSource string data.

func RenderContents

func RenderContents(s, format, style string) error

RenderContents and output to stdout. formatter see like formatters.TTY16m

func ReplaceSep

func ReplaceSep(s string) string

ReplaceSep in string

func ResolvePath

func ResolvePath(pathStr string) string

ResolvePath for input path

func ResolveSep

func ResolveSep(sep string) string

ResolveSep char

Types

This section is empty.

Jump to

Keyboard shortcuts

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