feat: add Shell step type

This commit is contained in:
lilong.129
2024-01-18 23:35:24 +08:00
parent dce414e892
commit 70c91a9f5a
7 changed files with 229 additions and 43 deletions

View File

@@ -769,6 +769,17 @@ func (s *StepRequest) IOS() *StepMobile {
}
}
// Shell creates a new shell action
func (s *StepRequest) Shell(content string) *StepShell {
s.step.Shell = &Shell{
String: content,
}
return &StepShell{
step: s.step,
}
}
// StepRequestWithOptionalArgs implements IStep interface.
type StepRequestWithOptionalArgs struct {
step *TStep