feat: add new zellij_version thingy
This commit is contained in:
parent
e5dcd0e610
commit
e2884c646a
|
@ -26,6 +26,8 @@ test {
|
||||||
/// zz.createPlugin(@This());
|
/// zz.createPlugin(@This());
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
|
/// pub const zellij_version = "0.33.0";
|
||||||
|
///
|
||||||
/// pub fn init() void {}
|
/// pub fn init() void {}
|
||||||
/// pub fn update(event: zz.Event) void {
|
/// pub fn update(event: zz.Event) void {
|
||||||
/// var event = zz.getEvent(gpa.allocator()) catch return;
|
/// var event = zz.getEvent(gpa.allocator()) catch return;
|
||||||
|
@ -56,6 +58,10 @@ pub fn createPlugin(comptime Plugin: type) void {
|
||||||
export fn update() void {
|
export fn update() void {
|
||||||
Plugin.update();
|
Plugin.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export fn plugin_version() void {
|
||||||
|
std.io.getStdOut().writeAll(Plugin.zellij_version ++ "\n") catch unreachable;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue