xcli

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLine

func ClearLine()

ClearLine ...

func Exec

func Exec(name string, args ...string) error

Exec ...

func ExecCB added in v0.0.7

func ExecCB(command string, cb func(string)) error

ExecCB 适用于执行持续输出的终端命令 e.g. ping baidu.com

func HideCursor

func HideCursor()

HideCursor ...

func Progress added in v0.0.8

func Progress(prefix string, percent float64, blocks int, suffixs ...string)

Progress ...

func Shell added in v0.0.5

func Shell(cmd string) string

Shell ...

func ShowCursor

func ShowCursor()

ShowCursor ...

Types

This section is empty.

Directories

Path Synopsis
example command
example command
example command

Jump to

Keyboard shortcuts

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