|
13 | 13 | //! xtask image ls |
14 | 14 | //! // Download a specific image and automatically extract it |
15 | 15 | //! xtask image download evm3588_arceos --output-dir ./images |
16 | | -//! // Download a specific image without extracting |
17 | | -//! xtask image download evm3588_arceos --output-dir ./images --no-extract |
| 16 | +//! // Pull a specific image (alias for download) and automatically extract it |
| 17 | +//! xtask image pull evm3588_arceos --output-dir ./images |
18 | 18 | //! // Remove a specific image from temp directory |
19 | 19 | //! xtask image rm evm3588_arceos |
20 | 20 | //! ``` |
@@ -42,6 +42,7 @@ pub enum ImageCommands { |
42 | 42 | /// List all available image |
43 | 43 | Ls, |
44 | 44 | /// Download the specified image and automatically extract it |
| 45 | + #[command(alias = "pull")] |
45 | 46 | Download { |
46 | 47 | image_name: String, |
47 | 48 | #[arg(short, long)] |
@@ -277,8 +278,8 @@ fn image_list() -> Result<()> { |
277 | 278 | /// ``` |
278 | 279 | /// // Download the evm3588_arceos image to the ./images directory and automatically extract it |
279 | 280 | /// xtask image download evm3588_arceos --output-dir ./images |
280 | | -/// // Download the evm3588_arceos image to the ./images directory without extracting |
281 | | -/// xtask image download evm3588_arceos --output-dir ./images --no-extract |
| 281 | +/// // Or use the pull alias |
| 282 | +/// xtask image pull evm3588_arceos --output-dir ./images |
282 | 283 | /// ``` |
283 | 284 | fn image_download(image_name: &str, output_dir: Option<String>, extract: bool) -> Result<()> { |
284 | 285 | let image = Image::find_by_name(image_name) |
@@ -458,7 +459,8 @@ fn image_remove(image_name: &str) -> Result<()> { |
458 | 459 | /// // Run image management commands |
459 | 460 | /// xtask image ls |
460 | 461 | /// xtask image download evm3588_arceos --output-dir ./images |
461 | | -/// xtask image download evm3588_arceos --output-dir ./images --no-extract |
| 462 | +/// // Or use the pull alias |
| 463 | +/// xtask image pull evm3588_arceos --output-dir ./images |
462 | 464 | /// xtask image rm evm3588_arceos |
463 | 465 | /// ``` |
464 | 466 | pub fn run_image(args: ImageArgs) -> Result<()> { |
|
0 commit comments