shell

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShellCommandStep

type ShellCommandStep struct {
	StepName          string
	Command           string
	Arguments         []string
	DirectoryPath     string
	TimeoutSeconds    int
	WorkingDirectory  string
	Retries           int
	RetryDelaySeconds int
}

ShellCommandStep represents a configurable deployment step that runs a shell command inside a target project directory.

This is used for commands like: - npm ci - npm run build - pm2 restart app

func (*ShellCommandStep) Name

func (s *ShellCommandStep) Name() string

Name returns the configured deployment step name.

func (*ShellCommandStep) Run

func (s *ShellCommandStep) Run(
	deploymentContext core.DeploymentContext,
) error

Run executes the configured command in the configured working directory.

Jump to

Keyboard shortcuts

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