You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a new CLI option to configure whether the logo should be shown
if configued to auto, Onefetch will detect the terminal size and
hide/show the logo based off that.
Signed-off-by: Luke-zhang-04 <[email protected]>
.help("Will hide the logo if true. If set to auto, the logo will be hidden if the terminal size is too small. If set to false, the logo will be shown no matter what.")
238
+
.conflicts_with("off")
239
+
).get_matches();
226
240
227
241
let no_bold = matches.is_present("no-bold");
228
242
let no_merges = matches.is_present("no-merge-commits");
229
243
let no_color_palette = matches.is_present("no-color-palette");
230
244
let print_languages = matches.is_present("languages");
231
245
let print_package_managers = matches.is_present("package-managers");
232
-
let art_off = matches.is_present("off");
246
+
letmutart_off = matches.is_present("off");
233
247
let true_color = cli_utils::is_truecolor_terminal();
248
+
let max_term_size = 95;
249
+
250
+
// The --off flag was passed in
251
+
if art_off {
252
+
std::println!(
253
+
"{}",
254
+
("The --off option is deprecated. Use \"--hide-logo true\" instead.").yellow(),
255
+
);
256
+
}
234
257
235
258
let fields_to_hide:Vec<String> = ifletSome(values) = matches.values_of("disable-fields")
0 commit comments