Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
io::copy(&mut f, &mut dw).context("read bundle file (for hash)")?;
dw.finish().0
};
- let kind = bundles::Kind::Zip;
+ let kind = bundles::Kind::only();
f.seek(io::SeekFrom::Start(0)).context("rewind bundle file")?;
let cmd = MC::UploadBundle {
game: instance_name.clone(),
#[strum(to_string="zip")] Zip,
// #[strum(to_string="game.toml")] GameSpec, // identification problems
}
+impl Kind { pub fn only() -> Self { Kind::Zip } }
pub type Index = u16;
const BUNDLES_MAX: Index = 64;