diff options
| author | tv <tv@krebsco.de> | 2026-10-25 20:01:00 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-25 20:01:00 +0100 |
| commit | 6d09b81329d33deb7e2ee614aa0c3025555c0f14 (patch) | |
| tree | 4b6d2820f1291ce04f65d03b8246dbee971542a0 /src/files.rs | |
| parent | 72472131a4bb3798759884da597cfb4ef7793782 (diff) | |
allow to remake genesis
Diffstat (limited to 'src/files.rs')
| -rw-r--r-- | src/files.rs | 10 |
1 files changed, 9 insertions, 1 deletions
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", } } |
