Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.31 KB

File metadata and controls

57 lines (39 loc) · 1.31 KB

Shell Plugin

fluentci pipeline ci

This plugin allows you to run shell commands in your FluentCI pipeline.

🚀 Usage

Add the following command to your CI configuration file:

fluentci run --wasm shell fish echo "Hello, World!"

Functions

Name Description
bash Run bash commands
fish Run fish commands
zsh Run zsh commands
nu Run nushell commands

Code Usage

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.1.9"

Use the following code to call the plugin:

use fluentci_pdk::dag;

// ...

dag().call("https://pkg.fluentci.io/shell@v0.1.1?wasm=1", "bash", vec!["echo 'Hello, World!'"])?;

📚 Examples

Github Actions:

- name: Setup Fluent CI CLI
  uses: fluentci-io/setup-fluentci@v5
  with:
    wasm: true
    plugin: shell
    args: |
      fish echo "Hello, World!"