runner

package
v0.0.0-...-0c45383 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: GPL-3.0 Imports: 19 Imported by: 0

README

Default runner executor

bash/sh/cmd/powershell

step:
  - name: sh
    type: sh
    content: |-
      ping -c 4 1.1.1.1

python2/python3

step:
  - name: python
    type: python
    content: |-
      import os
      os.system('ping -c 4 1.1.1.1')

mkdir

step:
  - name: mkdir
    type: mkdir
    content: |-
      path: a/b/c/d/e

touch

step:
  - name: touch
    type: touch
    content: |-
      path: a/b/c/d/e/f.txt
      overwrite: true
      content: |-
        content of f.txt      

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListAvailable

func ListAvailable() []string

func Register

func Register(name string, factory Factory)

Types

type Factory

type Factory func(storage storage.IStep, subCmd, workspace, scriptDir string) (IRunner, error)

func Get

func Get(name string) (Factory, error)

type IRunner

type IRunner interface {
	Run(ctx context.Context) (exit common.ExecCode, err error)
	Clear() error
}

Jump to

Keyboard shortcuts

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