Function
configureSSH
(c *config.Config, client client2.BaseWorkspaceClient, sshConfigPath, user, workdir string, gpgagent bool, devPodHome string)
Source from the content-addressed store, hash-verified
| 933 | } |
| 934 | |
| 935 | func 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 | |
| 959 | func mergeDevPodUpOptions(baseOptions *provider2.CLIOptions) error { |
| 960 | oldOptions := *baseOptions |
Tested by
no test coverage detected