acts-package-shell

Crates.ioacts-package-shell
lib.rsacts-package-shell
version0.17.2
created_at2025-06-06 12:21:23.085768+00
updated_at2025-06-07 13:44:22.923499+00
descriptionacts package for shell
homepagehttps://docs.rs/acts-package-http
repositoryhttps://github.com/yaojianpin/acts.git
max_upload_size
id1702954
size59,612
(yaojianpin)

documentation

README

acts-package-shell

The acts shell package plugin for acts.

Installation

cargo add acts-package-shell

Start

use acts::EngineBuilder;
use acts_package_shell::ShellPackagePlugin;

#[tokio::main]
async fn main() {
    let engine = EngineBuilder::new()
        .add_plugin(&ShellPackagePlugin)
        .build()
        .start();
}

Example

name: shell example
id: shell-example
inputs:
  my_input:  "hello, world"
steps:
  - name: shell step
    acts:
      - uses: acts.app.shell
        params:
          shell: nu
          content-type: json
          script: |
            let data = "{{ my_input }}"
            $data | split row ',' | each { |it| $it | str trim  } | to json
Commit count: 158

cargo fmt