Skip to content

Commit

Permalink
feat: add version info
Browse files Browse the repository at this point in the history
  • Loading branch information
ventsislav-georgiev committed Aug 27, 2022
1 parent c77ea6e commit 359f7de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/command/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/ventsislav-georgiev/prosper/pkg/global"
"github.com/ventsislav-georgiev/prosper/pkg/helpers"
"github.com/ventsislav-georgiev/prosper/pkg/settings"
"github.com/ventsislav-georgiev/prosper/version"
)

func Eval(expr string) (s string, icon []byte, onEnter func(), err error) {
Expand All @@ -24,6 +25,8 @@ func Eval(expr string) (s string, icon []byte, onEnter func(), err error) {
return "Quit", theme.LogoutIcon().Content(), func() { global.Quit() }, nil
case ":s":
return "Settings", theme.SettingsIcon().Content(), func() { settings.Show() }, nil
case ":v":
return version.Value, theme.InfoIcon().Content(), nil, nil
}

return "", nil, nil, nil
Expand Down
3 changes: 3 additions & 0 deletions version/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package version

var Value = "v0.32.0"

0 comments on commit 359f7de

Please sign in to comment.