chore: fix grammatical errors and improve clarity in code

Signed-off-by: xiaolinny <xiaolincode@outlook.com>
This commit is contained in:
xiaolinny 2025-12-08 17:52:42 +08:00 committed by Nicolas De loof
parent c0345e4f45
commit 0878c59a74
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)