Skip to content

UserSettings functions should have the same signature as Config #55

@kke

Description

@kke

I can't do something like this:

type sshconfig interface {
  GetAll(alias, key string) ([]string, error)
}

var sshConfig sshconfig

func initSshConfig() {
  if path := os.Getenv("SSH_CONFIG"); path != "" {
    f, _ := os.Open(path)
    cfg, _ := ssh_config.Decode(f)
    sshConfig = c
    return
   }
   sshConfig = ssh_config.DefaultUserSettings
}

==>

		have GetAll(alias string, key string) []string
		want GetAll(alias string, key string) ([]string, error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions