diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 934ab5b..6764d1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,16 +83,6 @@ jobs: **Usage:** Run `req` in your terminal - **Breaking Changes:** - Database schema has been updated. Please remove your existing database: - ```bash - # Linux/macOS - rm ~/.cache/req/app.db - - # Windows - del %LOCALAPPDATA%\req\app.db - ``` - **Note:** This is early development software. Core HTTP execution features are still in progress. Full changelog: https://github.com/maniac-en/req/commits/${{ env.VERSION }} diff --git a/internal/tui/app/context.go b/internal/tui/app/context.go index 6e2cbb8..0c4f0ee 100644 --- a/internal/tui/app/context.go +++ b/internal/tui/app/context.go @@ -13,6 +13,7 @@ type Context struct { HTTP *http.HTTPManager History *history.HistoryManager DummyDataCreated bool + Version string } func NewContext( @@ -20,6 +21,7 @@ func NewContext( endpoints *endpoints.EndpointsManager, httpManager *http.HTTPManager, history *history.HistoryManager, + version string, ) *Context { return &Context{ Collections: collections, @@ -27,6 +29,7 @@ func NewContext( HTTP: httpManager, History: history, DummyDataCreated: false, + Version: version, } } diff --git a/internal/tui/app/model.go b/internal/tui/app/model.go index 26e61fd..48c54e2 100644 --- a/internal/tui/app/model.go +++ b/internal/tui/app/model.go @@ -176,7 +176,7 @@ func (a AppModel) Header() string { func (a AppModel) Footer() string { name := styles.ApplyGradientToFooter("REQ") footerText := styles.FooterSegmentStyle.Render(a.Views[a.focusedView].GetFooterSegment()) - version := styles.FooterVersionStyle.Width(a.width - lipgloss.Width(name) - lipgloss.Width(footerText)).Render("v0.1.0-alpha.2") + version := styles.FooterVersionStyle.Width(a.width - lipgloss.Width(name) - lipgloss.Width(footerText)).Render(a.ctx.Version) return lipgloss.JoinHorizontal(lipgloss.Left, name, footerText, version) } diff --git a/main.go b/main.go index 90bd251..db79718 100644 --- a/main.go +++ b/main.go @@ -141,6 +141,7 @@ func main() { endpointsManager, httpManager, historyManager, + Version, ) // populate dummy data for demo