Skip to content

Commit 3859b72

Browse files
committed
chore: prepare release v0.1.0-alpha.2
- Remove breaking changes section from release notes - Fix hardcoded version in TUI to use injected version from build - Update context to pass version from main.go to TUI footer
1 parent dbdc407 commit 3859b72

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,6 @@ jobs:
8383
8484
**Usage:** Run `req` in your terminal
8585
86-
**Breaking Changes:**
87-
Database schema has been updated. Please remove your existing database:
88-
```bash
89-
# Linux/macOS
90-
rm ~/.cache/req/app.db
91-
92-
# Windows
93-
del %LOCALAPPDATA%\req\app.db
94-
```
95-
9686
**Note:** This is early development software. Core HTTP execution features are still in progress.
9787
9888
Full changelog: https://github.com/maniac-en/req/commits/${{ env.VERSION }}

internal/tui/app/context.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,23 @@ type Context struct {
1313
HTTP *http.HTTPManager
1414
History *history.HistoryManager
1515
DummyDataCreated bool
16+
Version string
1617
}
1718

1819
func NewContext(
1920
collections *collections.CollectionsManager,
2021
endpoints *endpoints.EndpointsManager,
2122
httpManager *http.HTTPManager,
2223
history *history.HistoryManager,
24+
version string,
2325
) *Context {
2426
return &Context{
2527
Collections: collections,
2628
Endpoints: endpoints,
2729
HTTP: httpManager,
2830
History: history,
2931
DummyDataCreated: false,
32+
Version: version,
3033
}
3134
}
3235

internal/tui/app/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (a AppModel) Header() string {
176176
func (a AppModel) Footer() string {
177177
name := styles.ApplyGradientToFooter("REQ")
178178
footerText := styles.FooterSegmentStyle.Render(a.Views[a.focusedView].GetFooterSegment())
179-
version := styles.FooterVersionStyle.Width(a.width - lipgloss.Width(name) - lipgloss.Width(footerText)).Render("v0.1.0-alpha.2")
179+
version := styles.FooterVersionStyle.Width(a.width - lipgloss.Width(name) - lipgloss.Width(footerText)).Render(a.ctx.Version)
180180
return lipgloss.JoinHorizontal(lipgloss.Left, name, footerText, version)
181181
}
182182

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ func main() {
141141
endpointsManager,
142142
httpManager,
143143
historyManager,
144+
Version,
144145
)
145146

146147
// populate dummy data for demo

req

12.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)