Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluentci-io/shell-plugin
This plugin allows you to run shell commands in your FluentCI pipeline.
https://github.com/fluentci-io/shell-plugin
cicd wasm
Last synced: 3 months ago
JSON representation
This plugin allows you to run shell commands in your FluentCI pipeline.
- Host: GitHub
- URL: https://github.com/fluentci-io/shell-plugin
- Owner: fluentci-io
- License: mit
- Created: 2024-05-04T09:26:44.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T19:06:54.000Z (3 months ago)
- Last Synced: 2024-08-03T20:23:30.837Z (3 months ago)
- Topics: cicd, wasm
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shell Plugin
[![fluentci pipeline](https://shield.fluentci.io/x/shell)](https://pkg.fluentci.io/shell)
[![ci](https://github.com/fluentci-io/shell-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/fluentci-io/shell-plugin/actions/workflows/ci.yml)This plugin allows you to run shell commands in your [FluentCI](https://fluentci.io) pipeline.
## 🚀 Usage
Add the following command to your CI configuration file:
```bash
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`:
```toml
[dependencies]
fluentci-pdk = "0.1.9"
```Use the following code to call the plugin:
```rust
use fluentci_pdk::dag;// ...
dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "bash", vec!["echo 'Hello, World!'"])?;
```## 📚 Examples
Github Actions:
```yaml
- name: Setup Fluent CI CLI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: shell
args: |
fish echo "Hello, World!"
```