bootstrap

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package bootstrap provides utilities for setting up the GSwarm environment, including repository management, virtual environment creation, and dependency installation.

Index

Constants

View Source
const (

	// OS constants
	OSDarwin  = "darwin"
	OSLinux   = "linux"
	OSWindows = "windows"
)

Variables

View Source
var CommandRunner = exec.Command

CommandRunner is a package-level variable that can be replaced in tests

Functions

func CheckPythonVersion

func CheckPythonVersion() error

func CheckYarn

func CheckYarn() error

func EnsureNodeAndNpm

func EnsureNodeAndNpm() error

func EnsureRepo

func EnsureRepo() error

EnsureRepo ensures we're in the correct repository

func EnsureVenv

func EnsureVenv() (string, error)

EnsureVenv ensures the Python virtual environment exists and is properly set up

func Env

func Env() (string, error)

Env handles all environment setup

func InstallYarn

func InstallYarn() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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