@datatruck/cli 0.41.6 → 0.41.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1993,7 +1993,7 @@
1993
1993
  "const": "prune"
1994
1994
  },
1995
1995
  "options": {
1996
- "$ref": "#/definitions/Omit<PruneCommandOptions,\"confirm\">"
1996
+ "$ref": "#/definitions/Omit%3CPruneCommandOptions%2C%22confirm%22%3E"
1997
1997
  },
1998
1998
  "schedule": {
1999
1999
  "anyOf": [
@@ -89,6 +89,7 @@ export declare class Restic {
89
89
  ids?: string[];
90
90
  tags?: string[];
91
91
  paths?: string[];
92
+ host?: string;
92
93
  latest?: number;
93
94
  json?: boolean;
94
95
  group?: ("path" | "tags" | "host")[];
@@ -108,6 +109,7 @@ export declare class Restic {
108
109
  cwd?: string;
109
110
  tags?: string[];
110
111
  paths: string[];
112
+ host?: string;
111
113
  setPaths?: string[];
112
114
  exclude?: string[];
113
115
  excludeFile?: string[];
@@ -172,6 +172,7 @@ class Restic {
172
172
  return await this.json([
173
173
  "snapshots",
174
174
  ...(json ? ["--json"] : []),
175
+ ...(options.host ? ["--host", options.host] : []),
175
176
  ...(options.tags?.flatMap((tag) => [`--tag`, tag]) ?? []),
176
177
  ...(options.paths?.flatMap((path) => ["--path", path]) ?? []),
177
178
  ...(options.group ? ["--group-by", options.group.join(",")] : []),
@@ -185,6 +186,7 @@ class Restic {
185
186
  const backup = this.createProcess([
186
187
  "backup",
187
188
  "--json",
189
+ ...(options.host ? ["--host", options.host] : []),
188
190
  ...(options.exclude?.flatMap((v) => ["-e", v]) ?? []),
189
191
  ...(options.excludeFile?.flatMap((v) => ["--exclude-file", v]) ?? []),
190
192
  ...(options.tags?.flatMap((v) => ["--tag", v]) ?? []),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datatruck/cli",
3
- "version": "0.41.6",
3
+ "version": "0.41.8",
4
4
  "description": "Tool for creating and managing backups",
5
5
  "homepage": "https://github.com/swordev/datatruck#readme",
6
6
  "bugs": {