just use zfin.fmt
This commit is contained in:
parent
52337ab5a9
commit
3e24d37040
1 changed files with 1 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const zfin = @import("root.zig");
|
const zfin = @import("root.zig");
|
||||||
const fmt = zfin.format;
|
|
||||||
const tui = @import("tui.zig");
|
const tui = @import("tui.zig");
|
||||||
const cli = @import("commands/common.zig");
|
const cli = @import("commands/common.zig");
|
||||||
|
|
||||||
|
|
@ -82,7 +81,7 @@ pub fn main() !u8 {
|
||||||
for (args[1..]) |arg| {
|
for (args[1..]) |arg| {
|
||||||
if (std.mem.eql(u8, arg, "--no-color")) no_color_flag = true;
|
if (std.mem.eql(u8, arg, "--no-color")) no_color_flag = true;
|
||||||
}
|
}
|
||||||
const color = fmt.shouldUseColor(no_color_flag);
|
const color = zfin.format.shouldUseColor(no_color_flag);
|
||||||
|
|
||||||
var config = zfin.Config.fromEnv(allocator);
|
var config = zfin.Config.fromEnv(allocator);
|
||||||
defer config.deinit();
|
defer config.deinit();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue