hooked_config/config/
task.rs

1//! Task to perform in hooks.
2
3use std::path::PathBuf;
4
5use serde::{Deserialize, Serialize};
6
7/// Task to perform in hooks.
8#[derive(Debug, Deserialize, Serialize)]
9#[serde(deny_unknown_fields)]
10pub struct Task {
11  /// Command to execute directly.
12  pub command: Option<String>,
13
14  /// Path to a script to execute.
15  pub script: Option<PathBuf>,
16}