Skip to content

Commit b949a09

Browse files
committed
feat: show version from core
1 parent 9ffbecb commit b949a09

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cmd/rfw/utils/output.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"time"
88

99
"github.com/fatih/color"
10+
"github.com/rfwlab/rfw/v1/core"
1011
)
1112

1213
var (
@@ -27,7 +28,7 @@ func ClearScreen() {
2728
}
2829

2930
func PrintStartupInfo(port, localIP string, host bool) {
30-
fmt.Println(indent, boldRed("rfw"), faint("v0.0.0"))
31+
fmt.Println(indent, boldRed("rfw"), faint(core.Version))
3132
fmt.Println()
3233
fmt.Println(indent, red("➜ "), bold("Local:"), red(fmt.Sprintf("http://localhost:%s/", port)))
3334

v1/core/version.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package core
2+
3+
const Version = "v0.1.3"

0 commit comments

Comments
 (0)