This commit is contained in:
Tommy Hyeonwoo Kim 2023-02-21 19:47:26 +09:00 committed by GitHub
parent 8fec7fa756
commit 664fb74867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ func (r *Runner) Run(ctx context.Context, cwd string, env []string, command stri
return runWithStdin(ctx, r.log.WithCallDepth(2), cwd, env, "", command, args...)
}
// RunWithStdin runs given command with stardart input
// RunWithStdin runs given command with standard input
func (r *Runner) RunWithStdin(ctx context.Context, cwd string, env []string, stdin, command string, args ...string) (string, error) {
// call depth = 2 to erase the runWithStdin frame and this one
return runWithStdin(ctx, r.log.WithCallDepth(2), cwd, env, stdin, command, args...)