Skip to content

Commit 8859fbf

Browse files
committed
more verbose info
1 parent a8d859b commit 8859fbf

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

backup.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import * as hex from "https://deno.land/std@0.219.1/encoding/hex.ts";
44
import * as fs from "https://deno.land/std@0.219.1/fs/mod.ts";
5+
import * as path from "https://deno.land/std@0.219.1/path/mod.ts";
56
import {
67
ArgumentValue,
78
Command,
@@ -120,7 +121,7 @@ const cli = new Command()
120121
Deno.exit(1);
121122
}
122123

123-
if (verbose) print(resp.stderr);
124+
if (verbose) console.log(`created repo at ${path.resolve(repo)}`);
124125
}
125126

126127
const bytes = new Uint8Array(6);
@@ -140,7 +141,10 @@ const cli = new Command()
140141
Deno.exit(1);
141142
}
142143

143-
if (verbose) print(resp.stderr);
144+
if (verbose) {
145+
console.log("backup info");
146+
print(resp.stderr);
147+
}
144148

145149
if (prune) {
146150
const resp = await borg(
@@ -158,7 +162,10 @@ const cli = new Command()
158162
Deno.exit(1);
159163
}
160164

161-
if (verbose) print(resp.stderr);
165+
if (verbose) {
166+
console.log("prune info");
167+
print(resp.stderr);
168+
}
162169

163170
// TODO: Detect borg 1.2.x and compact
164171
}

0 commit comments

Comments
 (0)