feat(output): summarize managed file sync
This commit is contained in:
1 parent
bfd3093776
commit
453da10b61
2 files changed
+2
-2
No files matched your search
@@ -59,7 +59,7 @@ function Sync-ManagedDestination {
|
||||
[switch]$DryRun,
|
||||
[switch]$Summary
|
||||
)
|
||||
Write-Output "SOURCE $Source -> $Destination"
|
||||
if (-not $Summary) { Write-Output "SOURCE $Source -> $Destination" }
|
||||
$manifestPath = Get-ManagedManifestPath $Destination
|
||||
$oldManifest = Read-ManagedManifest $manifestPath
|
||||
$newManifest = @{}
|
||||
|
||||
@@ -52,7 +52,7 @@ write_managed_manifest() {
|
||||
# sync_managed_destination <source-dir> <destination-dir> <stamp> <ai-config-root> <shell-command> <windows-shell-command> <dry-run: true|false> [summary: true|false]
|
||||
sync_managed_destination() {
|
||||
local source=$1 destination=$2 stamp=$3 ai_config_root=$4 shell_command=$5 windows_shell_command=$6 dry_run=$7 summary=${8:-false}
|
||||
printf 'SOURCE %s -> %s\n' "$source" "$destination"
|
||||
[ "$summary" = true ] || printf 'SOURCE %s -> %s\n' "$source" "$destination"
|
||||
local manifest
|
||||
manifest=$(manifest_path "$destination")
|
||||
declare -A old_manifest
|
||||
|
||||
Reference in new issue
Block a user