dotnet

package
v2.57.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// SourceName should match the one in the config file template.
	SourceName = "JFrogCli"
)

Variables

This section is empty.

Functions

func AddSourceToNugetConfig added in v2.56.6

func AddSourceToNugetConfig(cmdType dotnet.ToolchainType, sourceUrl, user, password string) error

Runs nuget/dotnet source add command

func DependencyTreeCmd

func DependencyTreeCmd() error

func GetSourceDetails added in v2.57.0

func GetSourceDetails(details *config.ServerDetails, repoName string, useNugetV2 bool) (sourceURL, user, password string, err error)

func InitNewConfig added in v2.29.8

func InitNewConfig(configDirPath, repoName string, server *config.ServerDetails, useNugetV2, allowInsecureConnections bool) (configFile *os.File, err error)

InitNewConfig is used when neither of the flags were provided, and we need to init our own config.

func RemoveSourceFromNugetConfigIfExists added in v2.57.0

func RemoveSourceFromNugetConfigIfExists(cmdType dotnet.ToolchainType) error

Runs nuget/dotnet source remove command

Types

type DotnetCommand

type DotnetCommand struct {
	// contains filtered or unexported fields
}

func (*DotnetCommand) CommandName

func (dc *DotnetCommand) CommandName() string

func (*DotnetCommand) Exec

func (dc *DotnetCommand) Exec() (err error)

Exec all consume type nuget commands, install, update, add, restore.

func (*DotnetCommand) GetToolchain added in v2.16.0

func (dc *DotnetCommand) GetToolchain() dotnet.ToolchainType

func (*DotnetCommand) ServerDetails

func (dc *DotnetCommand) ServerDetails() (*config.ServerDetails, error)

func (*DotnetCommand) SetAllowInsecureConnections added in v2.57.0

func (dc *DotnetCommand) SetAllowInsecureConnections(allowInsecureConnections bool) *DotnetCommand

func (*DotnetCommand) SetArgAndFlags

func (dc *DotnetCommand) SetArgAndFlags(argAndFlags []string) *DotnetCommand

func (*DotnetCommand) SetBasicCommand

func (dc *DotnetCommand) SetBasicCommand(subCommand string) *DotnetCommand

func (*DotnetCommand) SetBuildConfiguration

func (dc *DotnetCommand) SetBuildConfiguration(buildConfiguration *commonBuild.BuildConfiguration) *DotnetCommand

func (*DotnetCommand) SetRepoName

func (dc *DotnetCommand) SetRepoName(repoName string) *DotnetCommand

func (*DotnetCommand) SetServerDetails

func (dc *DotnetCommand) SetServerDetails(serverDetails *config.ServerDetails) *DotnetCommand

func (*DotnetCommand) SetSolutionPath

func (dc *DotnetCommand) SetSolutionPath(solutionPath string) *DotnetCommand

func (*DotnetCommand) SetToolchainType

func (dc *DotnetCommand) SetToolchainType(toolchainType dotnet.ToolchainType) *DotnetCommand

func (*DotnetCommand) SetUseNugetV2

func (dc *DotnetCommand) SetUseNugetV2(useNugetV2 bool) *DotnetCommand

type DotnetCoreCliCommand

type DotnetCoreCliCommand struct {
	*DotnetCommand
}

func NewDotnetCoreCliCommand

func NewDotnetCoreCliCommand() *DotnetCoreCliCommand

func (*DotnetCoreCliCommand) Run

func (dccc *DotnetCoreCliCommand) Run() (err error)

type NugetCommand

type NugetCommand struct {
	*DotnetCommand
}

func NewNugetCommand

func NewNugetCommand() *NugetCommand

func (*NugetCommand) Run

func (nc *NugetCommand) Run() error

Jump to

Keyboard shortcuts

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