mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: conform to stricter printf usage in Go 1.24 (#16330)
This commit is contained in:
+5
-5
@@ -45,14 +45,14 @@ func (r *RootCmd) publickey() *serpent.Command {
|
||||
return xerrors.Errorf("create codersdk client: %w", err)
|
||||
}
|
||||
|
||||
cliui.Infof(inv.Stdout,
|
||||
cliui.Info(inv.Stdout,
|
||||
"This is your public key for using "+pretty.Sprint(cliui.DefaultStyles.Field, "git")+" in "+
|
||||
"Coder. All clones with SSH will be authenticated automatically 🪄.",
|
||||
)
|
||||
cliui.Infof(inv.Stdout, pretty.Sprint(cliui.DefaultStyles.Code, strings.TrimSpace(key.PublicKey))+"\n")
|
||||
cliui.Infof(inv.Stdout, "Add to GitHub and GitLab:")
|
||||
cliui.Infof(inv.Stdout, "> https://github.com/settings/ssh/new")
|
||||
cliui.Infof(inv.Stdout, "> https://gitlab.com/-/profile/keys")
|
||||
cliui.Info(inv.Stdout, pretty.Sprint(cliui.DefaultStyles.Code, strings.TrimSpace(key.PublicKey))+"\n")
|
||||
cliui.Info(inv.Stdout, "Add to GitHub and GitLab:")
|
||||
cliui.Info(inv.Stdout, "> https://github.com/settings/ssh/new")
|
||||
cliui.Info(inv.Stdout, "> https://gitlab.com/-/profile/keys")
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user