feat: add new zellij_version thingy

This commit is contained in:
LordMZTE 2022-10-28 16:02:25 +02:00
parent e5dcd0e610
commit e2884c646a
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -26,6 +26,8 @@ test {
/// zz.createPlugin(@This());
/// }
///
/// pub const zellij_version = "0.33.0";
///
/// pub fn init() void {}
/// pub fn update(event: zz.Event) void {
/// var event = zz.getEvent(gpa.allocator()) catch return;
@ -56,6 +58,10 @@ pub fn createPlugin(comptime Plugin: type) void {
export fn update() void {
Plugin.update();
}
export fn plugin_version() void {
std.io.getStdOut().writeAll(Plugin.zellij_version ++ "\n") catch unreachable;
}
};
}