Skip to content

Commit

Permalink
cli: disable +boo on non-desktop platforms due to lack of tty
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Feb 14, 2025
1 parent 56efaf0 commit b975f1e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cli/boo.zig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const std = @import("std");
const builtin = @import("builtin");
const args = @import("args.zig");
const Action = @import("action.zig").Action;
const Allocator = std.mem.Allocator;
Expand Down Expand Up @@ -173,6 +174,12 @@ const Boo = struct {

/// The `boo` command is used to display the animation from the Ghostty website in the terminal
pub fn run(gpa: Allocator) !u8 {
// Disable on non-desktop systems.
switch (builtin.os.tag) {
.windows, .macos, .linux => {},
else => return 1,
}

var opts: Options = .{};
defer opts.deinit();

Expand Down

0 comments on commit b975f1e

Please sign in to comment.