|
1 | 1 | use std::{
|
2 | 2 | ffi::OsString,
|
3 |
| - fmt::Display, |
4 | 3 | fs, io,
|
5 | 4 | path::PathBuf,
|
6 | 5 | process::{Command, Stdio},
|
7 | 6 | };
|
8 | 7 |
|
9 |
| -use color_eyre::owo_colors::OwoColorize; |
10 | 8 | use serde::{Deserialize, Serialize};
|
11 | 9 | use thiserror::Error;
|
12 | 10 | use tracing::{debug, error, field::display as as_display, info};
|
@@ -119,33 +117,6 @@ pub struct BundleMeta {
|
119 | 117 | versions_directory: PathBuf,
|
120 | 118 | }
|
121 | 119 |
|
122 |
| -// pub enum BinaryAvailability { |
123 |
| -// NotFound, |
124 |
| -// PermissionDenied, |
125 |
| -// Ok, |
126 |
| -// } |
127 |
| - |
128 |
| -impl Display for Bundle { |
129 |
| - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
130 |
| - // writeln!(f, "BUNDLE INFO")?; |
131 |
| - // writeln!(f, "┏━━━━━━━━━━━")?; |
132 |
| - // writeln!(f, "┃ bundle: {self:?}")?; |
133 |
| - // writeln!(f, "┃ genesis: {:?}", self.genesis_json().into_os_string())?; |
134 |
| - // writeln!(f, "┃ versions:")?; |
135 |
| - |
136 |
| - let versions = |
137 |
| - fs::read_dir(self.versions_path()).expect("can't read contents of versions path"); |
138 |
| - for version in versions { |
139 |
| - let version = version |
140 |
| - .expect("can't read version dir entry") |
141 |
| - .path() |
142 |
| - .into_os_string(); |
143 |
| - writeln!(f, "┃ - {version:?}")?; |
144 |
| - } |
145 |
| - writeln!(f, "┗━━━━━━━━━━━") |
146 |
| - } |
147 |
| -} |
148 |
| - |
149 | 120 | impl Bundle {
|
150 | 121 | /// Constructs a new [`Bundle`] based on a path.
|
151 | 122 | /// Will read `bundle/meta.json` and error if invalid.
|
|
0 commit comments