this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix smallweb api command stucked

pomdtr 0ad55bd6 bf247a92

+1 -2
+1 -2
cmd/api.go
··· 10 10 "os" 11 11 "strings" 12 12 13 - "github.com/mattn/go-isatty" 14 13 "github.com/pomdtr/smallweb/api" 15 14 "github.com/spf13/cobra" 16 15 ) ··· 31 30 var body io.Reader 32 31 if flags.data != "" { 33 32 body = strings.NewReader(flags.data) 34 - } else if !isatty.IsTerminal(os.Stdin.Fd()) { 33 + } else if flags.data == "@-" { 35 34 body = os.Stdin 36 35 } 37 36