-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8d859b
commit 8859fbf
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
import * as hex from "https://deno.land/[email protected]/encoding/hex.ts"; | ||
import * as fs from "https://deno.land/[email protected]/fs/mod.ts"; | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts"; | ||
import { | ||
ArgumentValue, | ||
Command, | ||
|
@@ -120,7 +121,7 @@ const cli = new Command() | |
Deno.exit(1); | ||
} | ||
|
||
if (verbose) print(resp.stderr); | ||
if (verbose) console.log(`created repo at ${path.resolve(repo)}`); | ||
} | ||
|
||
const bytes = new Uint8Array(6); | ||
|
@@ -140,7 +141,10 @@ const cli = new Command() | |
Deno.exit(1); | ||
} | ||
|
||
if (verbose) print(resp.stderr); | ||
if (verbose) { | ||
console.log("backup info"); | ||
print(resp.stderr); | ||
} | ||
|
||
if (prune) { | ||
const resp = await borg( | ||
|
@@ -158,7 +162,10 @@ const cli = new Command() | |
Deno.exit(1); | ||
} | ||
|
||
if (verbose) print(resp.stderr); | ||
if (verbose) { | ||
console.log("prune info"); | ||
print(resp.stderr); | ||
} | ||
|
||
// TODO: Detect borg 1.2.x and compact | ||
} | ||
|