Hi, can I show the installed version of SilverBullet ?
Like {{installedVersion}} or {{version}} in my home page.
Hi, can I show the installed version of SilverBullet ?
Like {{installedVersion}} or {{version}} in my home page.
There’s the About: Version
command, and if you really like to have it in a template, I suppose this will work:
```space-script
silverbullet.registerFunction({name: "sbVersion"}, () => {
return syscall("system.getVersion");
});
```
Then you can use it in a template:
```template
Version: {{sbVersion}}
```
Perfect !
I don’t see About: Version
but there is Help: Version
. Sharing in case anyone else is confused
Update script to use syscalls exposed via “globals”
silverbullet.registerFunction({name: "sbVersion"}, () => {
return system.getVersion();
});