hooked/hooked-config/source/config/task.rs

17 lines
348 B
Rust
Raw Normal View History

2022-10-28 11:13:53 +00:00
//! Task to perform in hooks.
use std::path::PathBuf;
use serde::{Deserialize, Serialize};
/// Task to perform in hooks.
#[derive(Debug, Deserialize, Serialize)]
#[serde(deny_unknown_fields)]
pub struct Task {
/// Command to execute directly.
pub command: Option<String>,
/// Path to a script to execute.
pub script: Option<PathBuf>,
}