Skip to content

Commit

Permalink
chore: re-genreate docs and fix pkg not import
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Nov 29, 2022
1 parent 40e02c7 commit c6fc881
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
19 changes: 8 additions & 11 deletions README.md
Expand Up @@ -203,10 +203,6 @@ func ExecCommand(binName string, args []string, workDir ...string) (string, erro
func ShellExec(cmdLine string, shells ...string) (string, error)
func CurrentShell(onlyName bool) (path string)
func HasShellEnv(shell string) bool
func Workdir() string
func BinDir() string
func BinFile() string
func BinName() string
func BuildOptionHelpName(names []string) string
func ShellQuote(s string) string
func OutputLines(output string) []string
Expand Down Expand Up @@ -245,14 +241,21 @@ func Errorln(a ...any) { color.Error.Println(a...) }
func Warnp(a ...any) { color.Warn.Print(a...) }
func Warnf(format string, a ...any) { color.Warn.Printf(format, a...) }
func Warnln(a ...any) { color.Warn.Println(a...) }
// source at cliutil/info.go
func Workdir() string
func BinDir() string
func BinFile() string
func BinName() string
func GetTermSize(refresh ...bool) (w int, h int)
// source at cliutil/read.go
func ReadInput(question string) (string, error)
func ReadLine(question string) (string, error)
func ReadFirst(question string) (string, error)
func ReadFirstByte(question string) (byte, error)
func ReadFirstRune(question string) (rune, error)
// source at cliutil/read_nonwin.go
func ReadPassword(question ...string) string
func InputIsYes(ans string) bool
func ByteIsYes(ans byte) bool
```

#### CLI Util Usage
Expand Down Expand Up @@ -1380,10 +1383,4 @@ root@xx:/go/work# go test ./...
## License
[MIT](LICENSE)
ort Map, Struct, Form data
- [gookit/goutil](https://github.com/gookit/goutil) Some utils for the Go: string, array/slice, map, format, cli, env, filesystem, test and more
- More, please see https://github.com/gookit
## License
[MIT](LICENSE)
19 changes: 8 additions & 11 deletions README.zh-CN.md
Expand Up @@ -201,10 +201,6 @@ func ExecCommand(binName string, args []string, workDir ...string) (string, erro
func ShellExec(cmdLine string, shells ...string) (string, error)
func CurrentShell(onlyName bool) (path string)
func HasShellEnv(shell string) bool
func Workdir() string
func BinDir() string
func BinFile() string
func BinName() string
func BuildOptionHelpName(names []string) string
func ShellQuote(s string) string
func OutputLines(output string) []string
Expand Down Expand Up @@ -243,14 +239,21 @@ func Errorln(a ...any) { color.Error.Println(a...) }
func Warnp(a ...any) { color.Warn.Print(a...) }
func Warnf(format string, a ...any) { color.Warn.Printf(format, a...) }
func Warnln(a ...any) { color.Warn.Println(a...) }
// source at cliutil/info.go
func Workdir() string
func BinDir() string
func BinFile() string
func BinName() string
func GetTermSize(refresh ...bool) (w int, h int)
// source at cliutil/read.go
func ReadInput(question string) (string, error)
func ReadLine(question string) (string, error)
func ReadFirst(question string) (string, error)
func ReadFirstByte(question string) (byte, error)
func ReadFirstRune(question string) (rune, error)
// source at cliutil/read_nonwin.go
func ReadPassword(question ...string) string
func InputIsYes(ans string) bool
func ByteIsYes(ans byte) bool
```

#### CLI Util Usage
Expand Down Expand Up @@ -1372,9 +1375,3 @@ go test -v -run ^TestErr$ ./testutil/assert/...
## License
[MIT](LICENSE)
(https://github.com/gookit/goutil) Some utils for the Go: string, array/slice, map, format, cli, env, filesystem, test and more
- More, please see https://github.com/gookit
## License
[MIT](LICENSE)
2 changes: 2 additions & 0 deletions cliutil/info_windows.go
@@ -1,5 +1,7 @@
package cliutil

import "syscall"

// on Windows, must convert 'syscall.Stdin' to int
func syscallStdinFd() int {
return int(syscall.Stdin)
Expand Down

0 comments on commit c6fc881

Please sign in to comment.