environment

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVenvDoNotExist = errors.New("venv do not exist")
)

error variables block

Functions

func CreateGoEnvironment

func CreateGoEnvironment(directory string) error

CreateGoEnvironment runs go mod tidy and create .gitignore

Types

type PythonVenvMgr

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

PythonVenvMgr manages creating, deleting, activating and deactiving virtual environments

func NewPythonVenvMgr

func NewPythonVenvMgr() PythonVenvMgr

NewPythonVenvMgr is a PythonVenvMgr constructor

func (PythonVenvMgr) Activate

func (p PythonVenvMgr) Activate() (string, error)

Activate activates venv

func (PythonVenvMgr) Create

func (p PythonVenvMgr) Create(directory string) error

Create creates a venv

func (PythonVenvMgr) Deactivate

func (p PythonVenvMgr) Deactivate() string

Deactivate deactivates venv

func (PythonVenvMgr) Delete

func (p PythonVenvMgr) Delete() error

Delete deletes venv

Jump to

Keyboard shortcuts

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