Skip to content

Commit 796ed1b

Browse files
committed
add version and changelog
1 parent 4b8702e commit 796ed1b

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/).
6+
7+
## [Unreleased]
8+
9+
## [0.0.1] - 2025-08-10
10+
11+
### Added
12+
- Versioning, changelog and license
13+
- Go project for terminal interface to MQTT Client with connection/subscription management and publishing capabilities
14+
15+
[unreleased]: https://github.com/omegarelay/mqtt-tui/compare/v0.0.1...HEAD
16+
[0.0.1]: https://github.com/omegarelay/mqtt-tui/releases/tag/v0.0.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
## Changelog
4040

41-
This project is WIP, once released; all notable changes to this project will be documented in this CHANGELOG.md file.
41+
All notable changes to this project will be documented in the CHANGELOG.md file.
4242

4343
The format is based on [Keep a Changelog](http://keepachangelog.com/)
4444
and this project adheres to [Semantic Versioning](http://semver.org/).

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.1

main.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
_ "embed"
45
"encoding/json"
56
"fmt"
67
"os"
@@ -34,6 +35,7 @@ const kTitle = `███╗ ███╗ ██████╗ ████
3435
`
3536

3637
const kErrorPopupDuration = 10 * time.Second
38+
const kConnectionSaveFileName = "connections.json"
3739

3840
type model struct {
3941
connections list.Model
@@ -68,13 +70,14 @@ type newConnectionModel struct {
6870
form form.Model
6971
}
7072

71-
const kConnectionSaveFileName = "connections.json"
72-
7373
var (
7474
gCacheDir string
7575
gProgram tea.Program
7676
)
7777

78+
//go:embed VERSION
79+
var Version string
80+
7881
func main() {
7982
err := initStorage()
8083
if err != nil {
@@ -226,11 +229,11 @@ func (m model) View() string {
226229
}
227230

228231
width, height, _ := term.GetSize(0)
229-
m.connections.SetSize(styles.MenuWidth, height-12)
230-
connectionsWidget := viewport.New(styles.MenuWidth, height-12)
232+
m.connections.SetSize(styles.MenuWidth, height-13)
233+
connectionsWidget := viewport.New(styles.MenuWidth, height-13)
231234
connectionsWidget.SetContent(m.connections.View())
232235

233-
s = lipgloss.JoinVertical(lipgloss.Top, kTitle, borderStyle.Render(connectionsWidget.View()), m.help.View(m.keys))
236+
s = lipgloss.JoinVertical(lipgloss.Top, kTitle, "v"+Version, borderStyle.Render(connectionsWidget.View()), m.help.View(m.keys))
234237
widget := viewport.New(width-2, height-2)
235238
widget.SetContent(s)
236239
s = styles.FocusedBorderStyle.Render(widget.View())

0 commit comments

Comments
 (0)