wrkflw-utils

Crates.iowrkflw-utils
lib.rswrkflw-utils
version0.7.3
created_at2025-08-09 12:20:28.746899+00
updated_at2025-08-28 07:32:21.819641+00
descriptionUtility functions for wrkflw workflow execution engine
homepagehttps://github.com/bahdotsh/wrkflw
repositoryhttps://github.com/bahdotsh/wrkflw
max_upload_size
id1787881
size14,580
Gokul (bahdotsh)

documentation

https://github.com/bahdotsh/wrkflw

README

wrkflw-utils

Shared helpers used across crates.

  • Workflow file detection (.github/workflows/*.yml, .gitlab-ci.yml)
  • File-descriptor redirection utilities for silencing noisy subprocess output (Unix only; Windows support is limited)

Example

use std::path::Path;
use wrkflw_utils::{is_workflow_file, fd::with_stderr_to_null};

assert!(is_workflow_file(Path::new(".github/workflows/ci.yml")));

let value = with_stderr_to_null(|| {
    eprintln!("this is hidden on Unix, visible on Windows");
    42
}).unwrap();
assert_eq!(value, 42);
Commit count: 183

cargo fmt