Skip to content

Commit

Permalink
docs: update wish.Command docs
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jan 30, 2024
1 parent 82263ca commit ee243c6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ import (
//
// If the current session does not have a PTY, it sets them to the session
// itself.
//
// Note that due to the way Windows conpty works, using this on a Windows
// server in conjunction with the AllocatePty option is not recommended,
// as once the command finishes, the PTY will be killed too.
func CommandContext(ctx context.Context, s ssh.Session, name string, args ...string) *Cmd {
cmd := exec.CommandContext(ctx, name, args...)
return &Cmd{s, cmd}
Expand All @@ -28,10 +24,6 @@ func CommandContext(ctx context.Context, s ssh.Session, name string, args ...str
// itself.
//
// This will use the session's context as the context for exec.Command.
//
// Note that due to the way Windows conpty works, using this on a Windows
// server in conjunction with the AllocatePty option is not recommended,
// as once the command finishes, the PTY will be killed too.
func Command(s ssh.Session, name string, args ...string) *Cmd {
return CommandContext(s.Context(), s, name, args...)
}
Expand Down

0 comments on commit ee243c6

Please sign in to comment.