fix: terminology from "symbol link" to "symbolic link"

Corrected the terminology from "symbol link" to "symbolic link" in the following instances for clarity and accuracy:

1. In the flags definition:
   Changed "Always follow symbol link in SRC_PATH" to "Always follow symbolic link in SRC_PATH"

2. In the client request comment:
   Changed "if client requests to follow symbol link, then must decide target file to be copied" to "if client requests to follow symbolic link, then must decide target file to be copied"
This commit is contained in:
CharlesCNorton 2024-06-18 17:17:25 -04:00 committed by GitHub
parent 64206aef76
commit 5a82728738
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ func NewCopyCommand(dockerCli command.Cli) *cobra.Command {
} }
flags := cmd.Flags() flags := cmd.Flags()
flags.BoolVarP(&opts.followLink, "follow-link", "L", false, "Always follow symbol link in SRC_PATH") flags.BoolVarP(&opts.followLink, "follow-link", "L", false, "Always follow symbolic link in SRC_PATH")
flags.BoolVarP(&opts.copyUIDGID, "archive", "a", false, "Archive mode (copy all uid/gid information)") flags.BoolVarP(&opts.copyUIDGID, "archive", "a", false, "Archive mode (copy all uid/gid information)")
flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Suppress progress output during copy. Progress output is automatically suppressed if no terminal is attached") flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Suppress progress output during copy. Progress output is automatically suppressed if no terminal is attached")
return cmd return cmd
@ -227,7 +227,7 @@ func copyFromContainer(ctx context.Context, dockerCli command.Cli, copyConfig cp
} }
client := dockerCli.Client() client := dockerCli.Client()
// if client requests to follow symbol link, then must decide target file to be copied // if client requests to follow symbolic link, then must decide target file to be copied
var rebaseName string var rebaseName string
if copyConfig.followLink { if copyConfig.followLink {
srcStat, err := client.ContainerStatPath(ctx, copyConfig.container, srcPath) srcStat, err := client.ContainerStatPath(ctx, copyConfig.container, srcPath)