mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
refactor(script): rename path
to cmd
for consistency
BREAKING CHANGE: This changes the option in the `script` module. Any uses of the module must be updated to use the new option name.
This commit is contained in:
parent
df77020c52
commit
8c75bc46ac
2 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@ use tracing::error;
|
|||
#[derive(Debug, Deserialize, Clone)]
|
||||
pub struct ScriptModule {
|
||||
/// Path to script to execute.
|
||||
path: String,
|
||||
cmd: String,
|
||||
/// Script execution mode
|
||||
#[serde(default = "default_mode")]
|
||||
mode: ScriptMode,
|
||||
|
@ -38,7 +38,7 @@ impl From<&ScriptModule> for Script {
|
|||
fn from(module: &ScriptModule) -> Self {
|
||||
Self {
|
||||
mode: module.mode,
|
||||
cmd: module.path.clone(),
|
||||
cmd: module.cmd.clone(),
|
||||
interval: module.interval,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue