MCPcopy Index your code
hub / github.com/ddev/ddev / init

Function init

cmd/ddev/cmd/ssh.go:60–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func init() {
61 DdevSSHCmd.Flags().StringVarP(&serviceType, "service", "s", "web", "Defines the service to connect to. [e.g. web, db]")
62 _ = DdevSSHCmd.RegisterFlagCompletionFunc("service", ddevapp.GetServiceNamesFunc(true))
63 DdevSSHCmd.Flags().StringVarP(&sshDirArg, "dir", "d", "", "Defines the destination directory within the container")
64 DdevSSHCmd.Flags().StringVarP(&serviceUser, "user", "u", "", "Defines the user to use within the container")
65 RootCmd.AddCommand(DdevSSHCmd)
66}

Callers

nothing calls this directly

Calls 1

GetServiceNamesFuncFunction · 0.92

Tested by

no test coverage detected