Skip to content

Commit b975f1e

Browse files
committed
cli: disable +boo on non-desktop platforms due to lack of tty
1 parent 56efaf0 commit b975f1e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cli/boo.zig

+7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const std = @import("std");
2+
const builtin = @import("builtin");
23
const args = @import("args.zig");
34
const Action = @import("action.zig").Action;
45
const Allocator = std.mem.Allocator;
@@ -173,6 +174,12 @@ const Boo = struct {
173174

174175
/// The `boo` command is used to display the animation from the Ghostty website in the terminal
175176
pub fn run(gpa: Allocator) !u8 {
177+
// Disable on non-desktop systems.
178+
switch (builtin.os.tag) {
179+
.windows, .macos, .linux => {},
180+
else => return 1,
181+
}
182+
176183
var opts: Options = .{};
177184
defer opts.deinit();
178185

0 commit comments

Comments
 (0)