Documentation ¶
Index ¶
- func GetSupportedPackageManagersList() []string
- func IsSupportedPackageManager(packageManager project.ProjectType) bool
- type SetupCommand
- func (sc *SetupCommand) CommandName() string
- func (sc *SetupCommand) Run() (err error)
- func (sc *SetupCommand) ServerDetails() (*config.ServerDetails, error)
- func (sc *SetupCommand) SetProjectKey(projectKey string) *SetupCommand
- func (sc *SetupCommand) SetRepoName(repoName string) *SetupCommand
- func (sc *SetupCommand) SetServerDetails(serverDetails *config.ServerDetails) *SetupCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSupportedPackageManagersList ¶
func GetSupportedPackageManagersList() []string
GetSupportedPackageManagersList returns a sorted list of supported package manager names as strings.
func IsSupportedPackageManager ¶
func IsSupportedPackageManager(packageManager project.ProjectType) bool
Types ¶
type SetupCommand ¶
type SetupCommand struct {
// contains filtered or unexported fields
}
SetupCommand configures registries and authentication for various package manager (npm, Yarn, Pip, Pipenv, Poetry, Go)
func NewSetupCommand ¶
func NewSetupCommand(packageManager project.ProjectType) *SetupCommand
NewSetupCommand initializes a new SetupCommand for the specified package manager
func (*SetupCommand) CommandName ¶
func (sc *SetupCommand) CommandName() string
CommandName returns the name of the login command.
func (*SetupCommand) Run ¶
func (sc *SetupCommand) Run() (err error)
Run executes the configuration method corresponding to the package manager specified for the command.
func (*SetupCommand) ServerDetails ¶
func (sc *SetupCommand) ServerDetails() (*config.ServerDetails, error)
ServerDetails returns the stored server configuration details.
func (*SetupCommand) SetProjectKey ¶
func (sc *SetupCommand) SetProjectKey(projectKey string) *SetupCommand
SetProjectKey assigns the project key to the command.
func (*SetupCommand) SetRepoName ¶
func (sc *SetupCommand) SetRepoName(repoName string) *SetupCommand
SetRepoName assigns the repository name to the command.
func (*SetupCommand) SetServerDetails ¶
func (sc *SetupCommand) SetServerDetails(serverDetails *config.ServerDetails) *SetupCommand
SetServerDetails assigns the server configuration details to the command.