ch-remote: Support using unit suffices for "resize"

Remove the requirement for the user to calculate the size they want in
bytes.

Fixes: #1596

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-09-08 15:51:00 +01:00
committed by Sebastien Boeuf
parent 42de27b215
commit a86a2711f8
4 changed files with 22 additions and 8 deletions

View File

@@ -143,6 +143,7 @@ impl FromStr for Toggle {
pub struct ByteSized(pub u64);
#[derive(Debug)]
pub enum ByteSizedParseError {
InvalidValue(String),
}