common

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearExitDefer

func ClearExitDefer()

func FailExit

func FailExit(reason any, code ...int)

FailExit 接收错误信息或错误类型,如果接收错误信息则退出,如果接收到nil则直接返回,不退出(这么改之后就能少写几个panic了)

func GetPluginInfo

func GetPluginInfo(pluginFile string) (*convention.PluginInfo, error)

func ReadInputLine added in v0.1.1

func ReadInputLine(prompt string, trim ...bool) string

ReadInputLine 从用户输入中读取一行

func SetCurrentCmd

func SetCurrentCmd(sub string)

func SetExitDefer

func SetExitDefer(f func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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