Skip to content

Add check to cli commands to prevent accidentally destroying items or indexes #1419

@UlrichB22

Description

@UlrichB22

CLI commands should have checks to prevent destroying items, indexes or an existing wiki.
For example, if moin index-build is executed twice, each item will be included in the index twice.
Maybe there are others.

There is a note in the docs about index-build that needs to be updated if check has been added:
https://moin-20.readthedocs.io/en/latest/admin/index.html#moin-index-build

IMO there is a note missing in this doc to clear the index if it is corrupt but still in place:
https://moin-20.readthedocs.io/en/latest/admin/index.html#if-your-wiki-has-data-and-is-shut-down

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions