We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a0628 commit 7750c04Copy full SHA for 7750c04
private/buf/cmd/buf/command/registry/registrylogout/registrylogout.go
@@ -21,6 +21,7 @@ import (
21
"github.com/bufbuild/buf/private/bufpkg/bufconnect"
22
"github.com/bufbuild/buf/private/pkg/app/appcmd"
23
"github.com/bufbuild/buf/private/pkg/app/appext"
24
+ "github.com/bufbuild/buf/private/pkg/netext"
25
"github.com/bufbuild/buf/private/pkg/netrc"
26
"github.com/spf13/pflag"
27
)
@@ -63,6 +64,9 @@ func run(
63
64
remote := bufconnect.DefaultRemote
65
if container.NumArgs() == 1 {
66
remote = container.Arg(0)
67
+ if _, err := netext.ValidateHostname(remote); err != nil {
68
+ return err
69
+ }
70
}
71
modified1, err := netrc.DeleteMachineForName(container, remote)
72
if err != nil {
0 commit comments