Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forget: option --json missing #626

Closed
Ineluki opened this issue May 1, 2023 · 0 comments · Fixed by #806
Closed

forget: option --json missing #626

Ineluki opened this issue May 1, 2023 · 0 comments · Fixed by #806
Labels
A-cli Area: `rustic` command line interface C-enhancement Category: New feature or request good first issue Call for participation: Good for newcomers

Comments

@Ineluki
Copy link

Ineluki commented May 1, 2023

v0.5.3

rustic --json forget -r=/home/ineluki/Codez/int/restic-ui3/data/repo --prune --keep-monthly=3 --tag=/home/ineluki/Videos/animals

error: unexpected argument '--json' found Usage: rustic [OPTIONS] <COMMAND> For more information, try '--help'.

would hope to get a type similar to this:

type Forget = {
	tags: null|string,
	host: string,
	paths: string[],
	keep: Snapshot[],
	remove: null|Snapshot[],
	reasons: {
		snapshot: Snapshot,
		matches: string[],
		counters: {
			last: number
		}
	}[]
}[]

type Snapshot = {
	time: string,
	parent?: string,
	tree: string,
	paths: string[],
	hostname: string,
	username: string,
	uid: number,
	gid: number,
	tags: string[],
	id: string
}
@aawsome aawsome added the C-enhancement Category: New feature or request label May 9, 2023
@aawsome aawsome added the good first issue Call for participation: Good for newcomers label Jun 7, 2023
@aawsome aawsome added the A-cli Area: `rustic` command line interface label Jun 18, 2023
@simonsan simonsan changed the title option --json missing on forget forget: option --json missing Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Area: `rustic` command line interface C-enhancement Category: New feature or request good first issue Call for participation: Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants