style(esphome): add syntax highlighting
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-12-01 14:18:16 -05:00
parent 286211b5c5
commit 54431b42d7

View file

@ -70,13 +70,27 @@ in {
mkdir -p ${stateDir} mkdir -p ${stateDir}
fi fi
${optionalString (cfg.secretsFile != null) ''cp -f "$(realpath "${cfg.secretsFile}")" ${stateDir}/secrets.yaml''} ${optionalString
(cfg.secretsFile != null)
# bash
''
cp -f "$(realpath "${cfg.secretsFile}")" ${stateDir}/secrets.yaml
''}
${optionalString cfg.deleteUnmanaged ''find ${stateDir} -name "*.yaml" ! -name "secrets.yaml" -delete''} ${optionalString
cfg.deleteUnmanaged
# bash
''
find ${stateDir} -name "*.yaml" ! -name "secrets.yaml" -delete
''}
${concatMapStringsSep ${concatMapStringsSep
"\n" "\n"
(dev: ''cp -f "$(realpath "${dev.file}")" ${stateDir}/"${dev.name}"'') (dev:
# bash
''
cp -f "$(realpath "${dev.file}")" ${stateDir}/"${dev.name}"
'')
(mapAttrsToList mkESPConf cfg.firmwareConfigs)} (mapAttrsToList mkESPConf cfg.firmwareConfigs)}
''; '';
}); });