Skip to content

Commit

Permalink
fix: fix missing echo in kcl run (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
zong-zhe authored Dec 9, 2024
1 parent 2dcc098 commit 11fc1e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fs/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func GenTempFileFromStdin() (string, error) {
tempFile, err := os.CreateTemp("", "stdin")
tempFile, err := os.CreateTemp("", "stdin-*.k")
if err != nil {
return "", err
}
Expand Down
4 changes: 4 additions & 0 deletions pkg/options/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ func (o *RunOptions) Complete(args []string) error {
}

for _, arg := range args {
if arg == "-" {
o.Entries = append(o.Entries, arg)
continue
}

modSpec := downloader.ModSpec{}
err := modSpec.FromString(arg)
Expand Down

0 comments on commit 11fc1e8

Please sign in to comment.