os/exec: include Cmd.Start in the list of methods that run Cmd

Fixes #76265

Change-Id: I451271c5662dd3bcdeec07b55761b15f64c00dcd
Reviewed-on: https://go-review.googlesource.com/c/go/+/719860
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
Sean Liao 2025-11-11 21:08:26 +00:00 committed by Alan Donovan
parent 4bfc3a9d14
commit 65858a146e

View file

@ -142,8 +142,8 @@ func (w wrappedError) Unwrap() error {
// Cmd represents an external command being prepared or run. // Cmd represents an external command being prepared or run.
// //
// A Cmd cannot be reused after calling its [Cmd.Run], [Cmd.Output] or [Cmd.CombinedOutput] // A Cmd cannot be reused after calling its [Cmd.Start], [Cmd.Run],
// methods. // [Cmd.Output], or [Cmd.CombinedOutput] methods.
type Cmd struct { type Cmd struct {
// Path is the path of the command to run. // Path is the path of the command to run.
// //