MCPcopy Index your code
hub / github.com/devopsctl/gitlabctl / runGetSSHKey

Function runGetSSHKey

cmd/get_ssh_keys.go:81–88  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

79}
80
81func runGetSSHKey(cmd *cobra.Command) error {
82 sshKeys, err := getSSHKeys()
83 if err != nil {
84 return err
85 }
86 printSSHKeysOut(getFlagString(cmd, "out"), sshKeys...)
87 return nil
88}
89
90func getSSHKeys() ([]*gitlab.SSHKey, error) {
91 git, err := newGitlabClient()

Callers 1

get_ssh_keys.goFile · 0.85

Calls 3

getSSHKeysFunction · 0.85
printSSHKeysOutFunction · 0.85
getFlagStringFunction · 0.85

Tested by

no test coverage detected