We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4cbe84 commit e72f373Copy full SHA for e72f373
substenv.go
@@ -41,8 +41,11 @@ func RegexParserExpand(line string) string {
41
func main() {
42
app.Version("1.0.0")
43
app.Parse(os.Args[1:])
44
-
45
- var bio = bufio.NewReader(os.Stdin)
+ var file = os.Stdin
+ if *input != nil {
46
+ file = *input
47
+ }
48
+ var bio = bufio.NewReader(file)
49
for {
50
var line, err = bio.ReadString('\n')
51
if err != nil {
0 commit comments