Skip to content

Commit 49d2f13

Browse files
feat(cli): colorful cli (#3635)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent bcd4316 commit 49d2f13

File tree

4 files changed

+291
-227
lines changed

4 files changed

+291
-227
lines changed

.changes/colorful-cli.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"cli.rs": "patch"
3+
"cli.js": "patch"
4+
---
5+
6+
Improve readability of the `info` subcommand output.

tooling/bundler/src/bundle/updater_bundle.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ use std::{fs::File, io::prelude::*};
1818
use zip::write::FileOptions;
1919

2020
use crate::{bundle::Bundle, Settings};
21-
use std::{
22-
ffi::OsStr,
23-
fs::{self},
24-
io::Write,
25-
};
21+
use std::{fs, io::Write};
2622

2723
use anyhow::Context;
2824
use std::path::{Path, PathBuf};
@@ -43,6 +39,8 @@ pub fn bundle_project(settings: &Settings, bundles: &[Bundle]) -> crate::Result<
4339
// This is the Mac OS App packaged
4440
#[cfg(target_os = "macos")]
4541
fn bundle_update(settings: &Settings, bundles: &[Bundle]) -> crate::Result<Vec<PathBuf>> {
42+
use std::ffi::OsStr;
43+
4644
// find our .app or rebuild our bundle
4745
let bundle_path = match bundles
4846
.iter()
@@ -83,6 +81,8 @@ fn bundle_update(settings: &Settings, bundles: &[Bundle]) -> crate::Result<Vec<P
8381
// No assets are replaced
8482
#[cfg(target_os = "linux")]
8583
fn bundle_update(settings: &Settings, bundles: &[Bundle]) -> crate::Result<Vec<PathBuf>> {
84+
use std::ffi::OsStr;
85+
8686
// build our app actually we support only appimage on linux
8787
let bundle_path = match bundles
8888
.iter()

0 commit comments

Comments
 (0)