teacmd

package
v1.9.0-test Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: LGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDependenciesCmd

func CheckDependenciesCmd(deps []dependency.Dependency) tea.Cmd

CheckDependenciesCmd Iterate through required dependencies and check if they are installed. Dispatch CheckDependenciesMsg if any dependency is missing.

func DockerPurge

func DockerPurge() error

DockerPurge stops and deletes all docker containers and data volumes. This will completely wipe the state, if you only want to stop the containers, use DockerStop.

func DockerRestart

func DockerRestart(cfg *config.Config, services []DockerService) error

DockerRestart restarts a given docker container by name, rebuilds the image if `build` is true.

func DockerStart

func DockerStart(cfg *config.Config, services []DockerService) error

DockerStart starts a given docker container by name. Rebuilds the image if `build` is true. Runs in detach mode if `detach` is true. Runs with the debug docker compose, if `debug` is true.

func DockerStartAll

func DockerStartAll(cfg *config.Config) error

DockerStartAll starts both cardinal and nakama.

func DockerStop

func DockerStop(services []DockerService) error

If you want to reset all the services state, use DockerPurge.

func DockerStopAll

func DockerStopAll() error

DockerStopAll stops all running docker containers (does not remove volumes).

func GitCloneCmd

func GitCloneCmd(url, targetDir, initMsg string) error

func PrettyPrintMissingDependency

func PrettyPrintMissingDependency(depStatus []DependencyStatus) string

func PrintDependencyStatus

func PrintDependencyStatus(depStatus []DependencyStatus) (string, string)

PrintDependencyStatus Return a string with dependency status list and help messages.

Types

type CheckDependenciesMsg

type CheckDependenciesMsg struct {
	Err       error
	DepStatus []DependencyStatus
}

type DependencyStatus

type DependencyStatus struct {
	dependency.Dependency
	IsInstalled bool
}

type DockerService

type DockerService string
const (
	DockerServiceCardinal      DockerService = "cardinal"
	DockerServiceNakama        DockerService = "nakama"
	DockerServiceNakamaDB      DockerService = "nakama-db"
	DockerServiceRedis         DockerService = "redis"
	DockerServiceEVM           DockerService = "evm"
	DockerServiceDA            DockerService = "celestia-devnet"
	DockerServiceCardinalDebug DockerService = "cardinal-debug"
)

type GitCloneFinishMsg

type GitCloneFinishMsg struct {
	Err error
}

Jump to

Keyboard shortcuts

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