cli: dedicated directory

This commit is contained in:
Mitchell Hashimoto
2023-09-23 22:42:09 -07:00
parent 056de47b76
commit 7fc66f3851
5 changed files with 37 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ const options = @import("build_options");
const glfw = @import("glfw");
const macos = @import("macos");
const tracy = @import("tracy");
const cli_action = @import("cli_action.zig");
const cli = @import("cli.zig");
const internal_os = @import("os/main.zig");
const xev = @import("xev");
const fontconfig = @import("fontconfig");
@@ -171,7 +171,7 @@ pub const GlobalState = struct {
gpa: ?GPA,
alloc: std.mem.Allocator,
tracy: if (tracy.enabled) ?tracy.Allocator(null) else void,
action: ?cli_action.Action,
action: ?cli.Action,
logging: Logging,
/// Where logging should go
@@ -226,7 +226,7 @@ pub const GlobalState = struct {
};
// We first try to parse any action that we may be executing.
self.action = try cli_action.Action.detectCLI(self.alloc);
self.action = try cli.Action.detectCLI(self.alloc);
// If we have an action executing, we disable logging by default
// since we write to stderr we don't want logs messing up our
@@ -290,7 +290,7 @@ test {
_ = @import("renderer.zig");
_ = @import("termio.zig");
_ = @import("input.zig");
_ = @import("cli_action.zig");
_ = @import("cli.zig");
// Libraries
_ = @import("segmented_pool.zig");