MCPcopy Index your code
hub / github.com/docker/cli / newDialStdioCommand

Function newDialStdioCommand

cli/command/system/dial_stdio.go:17–30  ·  view source on GitHub ↗

newDialStdioCommand creates a new cobra.Command for `docker system dial-stdio`

(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

15
16// newDialStdioCommand creates a new cobra.Command for `docker system dial-stdio`
17func newDialStdioCommand(dockerCLI command.Cli) *cobra.Command {
18 cmd := &cobra.Command{
19 Use: "dial-stdio",
20 Short: "Proxy the stdio stream to the daemon connection. Should not be invoked manually.",
21 Args: cli.NoArgs,
22 Hidden: true,
23 RunE: func(cmd *cobra.Command, args []string) error {
24 return runDialStdio(cmd.Context(), dockerCLI)
25 },
26 ValidArgsFunction: cobra.NoFileCompletions,
27 DisableFlagsInUseLine: true,
28 }
29 return cmd
30}
31
32func runDialStdio(ctx context.Context, dockerCli command.Cli) error {
33 ctx, cancel := context.WithCancel(ctx)

Callers 1

newSystemCommandFunction · 0.85

Calls 1

runDialStdioFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…