Quellcode durchsuchen

chore: fix grammatical errors and improve clarity in code

Signed-off-by: xiaolinny <[email protected]>
xiaolinny vor 2 Wochen
Ursprung
Commit
0878c59a74
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      cmd/compose/run.go
  2. 1 1
      pkg/compose/run.go
  3. 1 1
      pkg/dryrun/dryrunclient.go

+ 1 - 1
cmd/compose/run.go

@@ -185,7 +185,7 @@ func runCommand(p *ProjectOptions, dockerCli command.Cli, backendOptions *Backen
 				}
 			} else if !cmd.Flags().Changed("no-TTY") && !cmd.Flags().Changed("interactive") && !dockerCli.In().IsTerminal() {
 				// while `docker run` requires explicit `-it` flags, Compose enables interactive mode and TTY by default
-				// but when compose is used from a scripr has stdin piped from another command, we just can't
+				// but when compose is used from a script that has stdin piped from another command, we just can't
 				// Here, we detect we run "by default" (user didn't passed explicit flags) and disable TTY allocation if
 				// we don't have an actual terminal to attach to for interactive mode
 				options.noTty = true

+ 1 - 1
pkg/compose/run.go

@@ -38,7 +38,7 @@ func (s *composeService) RunOneOffContainer(ctx context.Context, project *types.
 		return 0, err
 	}
 
-	// remove cancellable context signal handler so we can forward signals to container without compose to exit
+	// remove cancellable context signal handler so we can forward signals to container without compose from exiting
 	signal.Reset()
 
 	sigc := make(chan os.Signal, 128)

+ 1 - 1
pkg/dryrun/dryrunclient.go

@@ -313,7 +313,7 @@ func (d *DryRunClient) ContainerExecStart(ctx context.Context, execID string, co
 	return nil
 }
 
-// Functions delegated to original APIClient (not used by Compose or not modifying the Compose stack
+// Functions delegated to original APIClient (not used by Compose or not modifying the Compose stack)
 
 func (d *DryRunClient) ConfigList(ctx context.Context, options swarm.ConfigListOptions) ([]swarm.Config, error) {
 	return d.apiClient.ConfigList(ctx, options)