This plugin allows you to run shell commands in your FluentCI pipeline.
Add the following command to your CI configuration file:
fluentci run --wasm shell fish echo "Hello, World!"
Name | Description |
---|---|
bash | Run bash commands |
fish | Run fish commands |
zsh | Run zsh commands |
nu | Run nushell commands |
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!'"])?;
Github Actions:
- name: Setup Fluent CI CLI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: shell
args: |
fish echo "Hello, World!"