MCPcopy Index your code
hub / github.com/coder/coder / addOptions

Method addOptions

cli/configssh.go:66–74  ·  view source on GitHub ↗

addOptions expects options in the form of "option=value" or "option value". It will override any existing option with the same key to prevent duplicates. Invalid options will return an error.

(options ...string)

Source from the content-addressed store, hash-verified

64// It will override any existing option with the same key to prevent duplicates.
65// Invalid options will return an error.
66func (o *sshConfigOptions) addOptions(options ...string) error {
67 for _, option := range options {
68 err := o.addOption(option)
69 if err != nil {
70 return err
71 }
72 }
73 return nil
74}
75
76func (o *sshConfigOptions) addOption(option string) error {
77 key, value, err := codersdk.ParseSSHConfigOption(option)

Callers 2

mergeSSHOptionsFunction · 0.80

Calls 1

addOptionMethod · 0.95

Tested by 1