setup

package
v2.57.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL