mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
ft: make Ghostty more spooky
This commit is contained in:
@ -12,6 +12,7 @@ const list_actions = @import("list_actions.zig");
|
|||||||
const show_config = @import("show_config.zig");
|
const show_config = @import("show_config.zig");
|
||||||
const validate_config = @import("validate_config.zig");
|
const validate_config = @import("validate_config.zig");
|
||||||
const crash_report = @import("crash_report.zig");
|
const crash_report = @import("crash_report.zig");
|
||||||
|
const boo = @import("boo.zig");
|
||||||
|
|
||||||
/// Special commands that can be invoked via CLI flags. These are all
|
/// Special commands that can be invoked via CLI flags. These are all
|
||||||
/// invoked by using `+<action>` as a CLI flag. The only exception is
|
/// invoked by using `+<action>` as a CLI flag. The only exception is
|
||||||
@ -47,6 +48,9 @@ pub const Action = enum {
|
|||||||
// List, (eventually) view, and (eventually) send crash reports.
|
// List, (eventually) view, and (eventually) send crash reports.
|
||||||
@"crash-report",
|
@"crash-report",
|
||||||
|
|
||||||
|
// Hidden
|
||||||
|
boo,
|
||||||
|
|
||||||
pub const Error = error{
|
pub const Error = error{
|
||||||
/// Multiple actions were detected. You can specify at most one
|
/// Multiple actions were detected. You can specify at most one
|
||||||
/// action on the CLI otherwise the behavior desired is ambiguous.
|
/// action on the CLI otherwise the behavior desired is ambiguous.
|
||||||
@ -139,6 +143,7 @@ pub const Action = enum {
|
|||||||
.@"show-config" => try show_config.run(alloc),
|
.@"show-config" => try show_config.run(alloc),
|
||||||
.@"validate-config" => try validate_config.run(alloc),
|
.@"validate-config" => try validate_config.run(alloc),
|
||||||
.@"crash-report" => try crash_report.run(alloc),
|
.@"crash-report" => try crash_report.run(alloc),
|
||||||
|
.boo => try boo.run(alloc),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
25
src/cli/boo.zig
Normal file
25
src/cli/boo.zig
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
const std = @import("std");
|
||||||
|
|
||||||
|
const GHOST =
|
||||||
|
\\ ⠀⠀⠀⠀⣠⣴⣶⣿⣿⣿⣿⣿⣿⣷⣶⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
\\ ⠀⠀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
\\ ⢀⣾⣿⣿⣿⡿⠟⠿⢿⣿⣿⣿⡿⠟⠿⢿⣿⣿⣿⡄ ⠀
|
||||||
|
\\ ⣼⣿⣿⣿⡏⠀⠀⠀⠀⢻⣿⡏⠀⠀⠀⠀⢻⣿⣿⣿
|
||||||
|
\\ ⣿⣿⣿⣿⠀⠀⠀⣾⣿⡆⣿⠀⠀⠀⣾⣿⡆⣿⣿⣿⡇
|
||||||
|
\\ ⣿⣿⣿⣿⡄⠀⠀⠙⠛⢱⣿⡄⠀⠀⠙⠛⢱⣿⣿⣿⡇
|
||||||
|
\\ ⣿⣿⣿⣿⣿⣦⣄⣠⣴⣿⣿⣿⣦⣄⣠⣴⣿⣿⣿⣿⡇
|
||||||
|
\\ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
\\ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
\\ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⢀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⠀⠀
|
||||||
|
\\ ⣿⣿⣿⣿⠁⠀⠀⠘⣿⣿⣿⣿⠏⠀⠀⠀⢻⣿⣿⣿⡇⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⠀
|
||||||
|
\\ ⠿⣿⡿⠇⠀⠀⠀⠀⠻⣿⣿⠟⠀⠀⠀⠀⠘⢿⣿⡿⠃⠀⠘⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠀
|
||||||
|
;
|
||||||
|
|
||||||
|
/// Who you gonna call?
|
||||||
|
pub fn run(alloc: std.mem.Allocator) !u8 {
|
||||||
|
_ = alloc;
|
||||||
|
const stdout = std.io.getStdOut().writer();
|
||||||
|
try stdout.writeAll(GHOST);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Reference in New Issue
Block a user