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.
Click to show internal directories.
Click to hide internal directories.