MCPcopy
hub / github.com/loft-sh/devpod / configureSSH

Function configureSSH

cmd/up.go:935–957  ·  view source on GitHub ↗
(c *config.Config, client client2.BaseWorkspaceClient, sshConfigPath, user, workdir string, gpgagent bool, devPodHome string)

Source from the content-addressed store, hash-verified

933}
934
935func configureSSH(c *config.Config, client client2.BaseWorkspaceClient, sshConfigPath, user, workdir string, gpgagent bool, devPodHome string) error {
936 path, err := devssh.ResolveSSHConfigPath(sshConfigPath)
937 if err != nil {
938 return errors.Wrap(err, "Invalid ssh config path")
939 }
940 sshConfigPath = path
941
942 err = devssh.ConfigureSSHConfig(
943 sshConfigPath,
944 client.Context(),
945 client.Workspace(),
946 user,
947 workdir,
948 gpgagent,
949 devPodHome,
950 log.Default,
951 )
952 if err != nil {
953 return err
954 }
955
956 return nil
957}
958
959func mergeDevPodUpOptions(baseOptions *provider2.CLIOptions) error {
960 oldOptions := *baseOptions

Callers 1

RunMethod · 0.85

Calls 2

ContextMethod · 0.65
WorkspaceMethod · 0.65

Tested by

no test coverage detected