From 6d09b81329d33deb7e2ee614aa0c3025555c0f14 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 25 Oct 2026 20:01:00 +0100 Subject: allow to remake genesis --- src/files.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/files.rs') diff --git a/src/files.rs b/src/files.rs index 7bf9117..58fd043 100644 --- a/src/files.rs +++ b/src/files.rs @@ -18,16 +18,24 @@ pub(crate) enum FileKind { State, Document, Backup, + /// The input of a genesis remake (`--genesis --remake`). + Remake, } impl FileKind { - pub(crate) const ALL: [FileKind; 3] = [FileKind::State, FileKind::Document, FileKind::Backup]; + pub(crate) const ALL: [FileKind; 4] = [ + FileKind::State, + FileKind::Document, + FileKind::Backup, + FileKind::Remake, + ]; pub(crate) fn as_str(self) -> &'static str { match self { FileKind::State => "state", FileKind::Document => "document", FileKind::Backup => "backup", + FileKind::Remake => "remake", } } -- cgit v1.3.1