@@ -46,6 +46,8 @@ func buildToolToPackageType(buildTool project.ProjectType) (string, error) {
4646 return repository .Npm , nil
4747 case project .Pip , project .Pipenv , project .Poetry :
4848 return repository .Pypi , nil
49+ case project .Go :
50+ return repository .Go , nil
4951 default :
5052 return "" , errorutils .CheckError (fmt .Errorf ("unsupported build tool: %s" , buildTool ))
5153 }
@@ -69,9 +71,9 @@ func (btlc *BuildToolLoginCommand) ServerDetails() (*config.ServerDetails, error
6971
7072// Run executes the configuration method corresponding to the project type specified for the command.
7173func (btlc * BuildToolLoginCommand ) Run () (err error ) {
72- // Prompt the user to select a repository if none has been specified.
7374 if btlc .repoName == "" {
74- if err = btlc .SetVirtualRepoNameInteractively (); err != nil {
75+ // Prompt the user to select a virtual repository that matches the project type.
76+ if err = btlc .GetRepositoryNameFromUserInteractively (); err != nil {
7577 return err
7678 }
7779 }
@@ -99,8 +101,8 @@ func (btlc *BuildToolLoginCommand) Run() (err error) {
99101 return nil
100102}
101103
102- // SetVirtualRepoNameInteractively prompts the user to select a compatible virtual repository.
103- func (btlc * BuildToolLoginCommand ) SetVirtualRepoNameInteractively () error {
104+ // GetRepositoryNameFromUserInteractively prompts the user to select a compatible virtual repository.
105+ func (btlc * BuildToolLoginCommand ) GetRepositoryNameFromUserInteractively () error {
104106 // Map the build tool to its corresponding package type.
105107 packageType , err := buildToolToPackageType (btlc .buildTool )
106108 if err != nil {
0 commit comments