Documentation ¶
Index ¶
- func ExtractPackageNameFromSetupPy(setuppyFilePath, pythonExecutablePath string) (string, error)
- type PipInstallCommand
- type PipNativeCommand
- type PipenvInstallCommand
- type PipenvNativeCommand
- type PythonCommand
- func (pc *PythonCommand) GetCmd() *exec.Cmd
- func (pc *PythonCommand) GetEnv() map[string]string
- func (pc *PythonCommand) GetErrWriter() io.WriteCloser
- func (pc *PythonCommand) GetStdWriter() io.WriteCloser
- func (pc *PythonCommand) SetArgs(arguments []string) *PythonCommand
- func (pc *PythonCommand) SetCommandName(commandName string) *PythonCommand
- func (pc *PythonCommand) SetRepo(repo string) *PythonCommand
- func (pc *PythonCommand) SetServerDetails(serverDetails *config.ServerDetails) *PythonCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPackageNameFromSetupPy ¶
Get the project-name by running 'egg_info' command on setup.py and extracting it from 'PKG-INFO' file.
Types ¶
type PipInstallCommand ¶
type PipInstallCommand struct {
*PythonCommand
}
func NewPipInstallCommand ¶
func NewPipInstallCommand() *PipInstallCommand
func (*PipInstallCommand) CommandName ¶
func (pic *PipInstallCommand) CommandName() string
func (*PipInstallCommand) Run ¶
func (pic *PipInstallCommand) Run() (err error)
func (*PipInstallCommand) ServerDetails ¶
func (pic *PipInstallCommand) ServerDetails() (*config.ServerDetails, error)
type PipNativeCommand ¶
type PipNativeCommand struct {
PythonCommand
}
func NewPipNativeCommand ¶
func NewPipNativeCommand() *PipNativeCommand
NewPipNativeCommand represents any pip command which is not "install".
func (*PipNativeCommand) CommandName ¶
func (pnc *PipNativeCommand) CommandName() string
func (*PipNativeCommand) Run ¶
func (pnc *PipNativeCommand) Run() (err error)
func (*PipNativeCommand) ServerDetails ¶
func (pnc *PipNativeCommand) ServerDetails() (*config.ServerDetails, error)
type PipenvInstallCommand ¶
type PipenvInstallCommand struct {
*PythonCommand
}
func NewPipenvInstallCommand ¶
func NewPipenvInstallCommand() *PipenvInstallCommand
func (*PipenvInstallCommand) CommandName ¶
func (peic *PipenvInstallCommand) CommandName() string
func (*PipenvInstallCommand) Run ¶
func (peic *PipenvInstallCommand) Run() (err error)
func (*PipenvInstallCommand) ServerDetails ¶
func (peic *PipenvInstallCommand) ServerDetails() (*config.ServerDetails, error)
type PipenvNativeCommand ¶
type PipenvNativeCommand struct {
PythonCommand
}
func NewPipenvNativeCommand ¶
func NewPipenvNativeCommand() *PipenvNativeCommand
NewPipNativeCommand represents any pip command which is not "install".
func (*PipenvNativeCommand) CommandName ¶
func (penc *PipenvNativeCommand) CommandName() string
func (*PipenvNativeCommand) Run ¶
func (penc *PipenvNativeCommand) Run() (err error)
func (*PipenvNativeCommand) ServerDetails ¶
func (penc *PipenvNativeCommand) ServerDetails() (*config.ServerDetails, error)
type PythonCommand ¶
type PythonCommand struct {
// contains filtered or unexported fields
}
func (*PythonCommand) GetCmd ¶
func (pc *PythonCommand) GetCmd() *exec.Cmd
func (*PythonCommand) GetEnv ¶
func (pc *PythonCommand) GetEnv() map[string]string
func (*PythonCommand) GetErrWriter ¶
func (pc *PythonCommand) GetErrWriter() io.WriteCloser
func (*PythonCommand) GetStdWriter ¶
func (pc *PythonCommand) GetStdWriter() io.WriteCloser
func (*PythonCommand) SetArgs ¶
func (pc *PythonCommand) SetArgs(arguments []string) *PythonCommand
func (*PythonCommand) SetCommandName ¶
func (pc *PythonCommand) SetCommandName(commandName string) *PythonCommand
func (*PythonCommand) SetRepo ¶
func (pc *PythonCommand) SetRepo(repo string) *PythonCommand
func (*PythonCommand) SetServerDetails ¶
func (pc *PythonCommand) SetServerDetails(serverDetails *config.ServerDetails) *PythonCommand
Source Files ¶
Click to show internal directories.
Click to hide internal directories.