@@ -117,7 +117,7 @@ type CreateOptions struct {
117117
118118// StartOptions group options of the Start API
119119type StartOptions struct {
120- // Project is the compose project used to define this app. Might be nil if user ran `start` just with project name
120+ // Project is the compose project used to define this app. Might be nil if user ran command just with project name
121121 Project * types.Project
122122 // Attach to container and forward logs if not nil
123123 Attach LogConsumer
@@ -133,6 +133,8 @@ type StartOptions struct {
133133
134134// RestartOptions group options of the Restart API
135135type RestartOptions struct {
136+ // Project is the compose project used to define this app. Might be nil if user ran command just with project name
137+ Project * types.Project
136138 // Timeout override container restart timeout
137139 Timeout * time.Duration
138140 // Services passed in the command line to be restarted
@@ -141,6 +143,8 @@ type RestartOptions struct {
141143
142144// StopOptions group options of the Stop API
143145type StopOptions struct {
146+ // Project is the compose project used to define this app. Might be nil if user ran command just with project name
147+ Project * types.Project
144148 // Timeout override container stop timeout
145149 Timeout * time.Duration
146150 // Services passed in the command line to be stopped
@@ -201,6 +205,8 @@ type KillOptions struct {
201205
202206// RemoveOptions group options of the Remove API
203207type RemoveOptions struct {
208+ // Project is the compose project used to define this app. Might be nil if user ran command just with project name
209+ Project * types.Project
204210 // DryRun just list removable resources
205211 DryRun bool
206212 // Volumes remove anonymous volumes
@@ -213,6 +219,8 @@ type RemoveOptions struct {
213219
214220// RunOptions group options of the Run API
215221type RunOptions struct {
222+ // Project is the compose project used to define this app. Might be nil if user ran command just with project name
223+ Project * types.Project
216224 Name string
217225 Service string
218226 Command []string
@@ -377,6 +385,8 @@ type LogOptions struct {
377385type PauseOptions struct {
378386 // Services passed in the command line to be started
379387 Services []string
388+ // Project is the compose project used to define this app. Might be nil if user ran command just with project name
389+ Project * types.Project
380390}
381391
382392const (
0 commit comments