barley-interface

Crates.iobarley-interface
lib.rsbarley-interface
version0.3.0
sourcesrc
created_at2023-05-17 14:56:35.60975
updated_at2023-06-05 10:54:16.702145
descriptionA runtime interface for Barley
homepagehttps://github.com/panthios/barley
repositoryhttps://github.com/panthios/barley
max_upload_size
id867021
size15,850
Carlos Kieliszewski (carlosskii)

documentation

https://docs.rs/barley-interface

README

barley-interface

This crate provides a basic command-line interface for the barley workflow engine. It provides runtime progress and error reporting.

This crate does not provide any interactive features, as that would defeat the purpose of Barley entirely. It is simply a wrapper around the base Context that provides more information at runtime.

Usage

use barley_interface::Interface;
use barley_runtime::*;
use barley_std::thread::Sleep;
use std::time::Duration;

#[tokio::main]
async fn main() -> Result<()> {
  let interface = Interface::new();
  let sleep = Sleep::new(Duration::from_secs(1));

  interface.add_action(sleep).await;

  interface.run().await
}
Commit count: 123

cargo fmt