make ListOpensshConfig private

This commit is contained in:
Jason Lunz 2021-12-16 16:38:47 -07:00
parent 96a2e125e6
commit 3cb3cf7ca5
No known key found for this signature in database
GPG key ID: 88F9FD38589448E9

View file

@ -156,7 +156,7 @@ func (a *App) SSH(ctx context.Context, sshArgs []string, opts sshOptions) (err e
}
}
func (a *App) ListOpensshConfig(ctx context.Context, opts configOptions) error {
func (a *App) listOpensshConfig(ctx context.Context, opts configOptions) error {
// Ensure all child tasks (e.g. port forwarding) terminate before return.
ctx, cancel := context.WithCancel(ctx)
defer cancel()
@ -402,7 +402,7 @@ func newConfigCmd(app *App) *cobra.Command {
$ echo 'include ~/.ssh/codespaces' >> ~/.ssh/config'
`),
RunE: func(cmd *cobra.Command, args []string) error {
return app.ListOpensshConfig(cmd.Context(), opts)
return app.listOpensshConfig(cmd.Context(), opts)
},
DisableFlagsInUseLine: true,
}