Skip to content

Commit d1d3521

Browse files
committed
Update module path to 'larkinwc/gitlab-runner-tui' in go.mod, install.sh, README.md, and various source files for consistency.
1 parent a26e740 commit d1d3521

File tree

10 files changed

+130
-130
lines changed

10 files changed

+130
-130
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@ A Terminal User Interface (TUI) for managing GitLab runners on Debian hosts. Thi
2626

2727
```bash
2828
# Download and install latest release
29-
curl -sSL https://raw.githubusercontent.com/larkin/gitlab-runner-tui/main/install.sh | bash
29+
curl -sSL https://raw.githubusercontent.com/larkinwc/gitlab-runner-tui/main/install.sh | bash
3030

3131
# Or with wget
32-
wget -qO- https://raw.githubusercontent.com/larkin/gitlab-runner-tui/main/install.sh | bash
32+
wget -qO- https://raw.githubusercontent.com/larkinwc/gitlab-runner-tui/main/install.sh | bash
3333
```
3434

3535
### Manual Download
3636

37-
Download the latest release for your platform from the [releases page](https://github.com/larkin/gitlab-runner-tui/releases).
37+
Download the latest release for your platform from the [releases page](https://github.com/larkinwc/gitlab-runner-tui/releases).
3838

3939
```bash
4040
# Example for Linux x64
41-
curl -L https://github.com/larkin/gitlab-runner-tui/releases/latest/download/gitlab-runner-tui_Linux_x86_64.tar.gz | tar xz
41+
curl -L https://github.com/larkinwc/gitlab-runner-tui/releases/latest/download/gitlab-runner-tui_Linux_x86_64.tar.gz | tar xz
4242
sudo mv gitlab-runner-tui /usr/local/bin/
4343
```
4444

4545
### Build from Source
4646

4747
```bash
4848
# Clone the repository
49-
git clone https://github.com/larkin/gitlab-runner-tui
49+
git clone https://github.com/larkinwc/gitlab-runner-tui
5050
cd gitlab-runner-tui
5151

5252
# Build the binary

cmd/gitlab-runner-tui/main.go

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ import (
88

99
tea "github.com/charmbracelet/bubbletea"
1010
"github.com/charmbracelet/lipgloss"
11-
"github.com/larkin/gitlab-runner-tui/pkg/runner"
12-
"github.com/larkin/gitlab-runner-tui/pkg/ui"
11+
"github.com/larkinwc/gitlab-runner-tui/pkg/runner"
12+
"github.com/larkinwc/gitlab-runner-tui/pkg/ui"
1313
)
1414

1515
type model struct {
16-
tabs []string
17-
activeTab int
18-
runnersView *ui.RunnersView
19-
logsView *ui.LogsView
20-
configView *ui.ConfigView
21-
systemView *ui.SystemView
22-
width int
23-
height int
24-
quitting bool
16+
tabs []string
17+
activeTab int
18+
runnersView *ui.RunnersView
19+
logsView *ui.LogsView
20+
configView *ui.ConfigView
21+
systemView *ui.SystemView
22+
width int
23+
height int
24+
quitting bool
2525
}
2626

2727
func initialModel(configPath string) model {
2828
service := runner.NewService(configPath)
29-
29+
3030
return model{
3131
tabs: []string{"Runners", "Logs", "Config", "System"},
3232
activeTab: 0,
@@ -53,12 +53,12 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
5353
case tea.WindowSizeMsg:
5454
m.width = msg.Width
5555
m.height = msg.Height
56-
56+
5757
m.runnersView.Update(msg)
5858
m.logsView.Update(msg)
5959
m.configView.Update(msg)
6060
m.systemView.Update(msg)
61-
61+
6262
return m, nil
6363

6464
case tea.KeyMsg:
@@ -70,21 +70,21 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
7070
}
7171
m.quitting = true
7272
return m, tea.Quit
73-
73+
7474
case "tab":
7575
m.activeTab = (m.activeTab + 1) % len(m.tabs)
7676
return m, nil
77-
77+
7878
case "shift+tab":
7979
m.activeTab = (m.activeTab - 1 + len(m.tabs)) % len(m.tabs)
8080
return m, nil
81-
81+
8282
case "1", "2", "3", "4":
8383
if idx := int(msg.String()[0] - '1'); idx < len(m.tabs) {
8484
m.activeTab = idx
8585
}
8686
return m, nil
87-
87+
8888
case "enter":
8989
if m.activeTab == 0 {
9090
if runner := m.runnersView.GetSelectedRunner(); runner != nil {
@@ -123,7 +123,7 @@ func (m model) View() string {
123123
}
124124

125125
tabBar := m.renderTabBar()
126-
126+
127127
var content string
128128
switch m.activeTab {
129129
case 0:
@@ -135,7 +135,7 @@ func (m model) View() string {
135135
case 3:
136136
content = m.systemView.View()
137137
}
138-
138+
139139
return lipgloss.JoinVertical(
140140
lipgloss.Left,
141141
tabBar,
@@ -145,15 +145,15 @@ func (m model) View() string {
145145

146146
func (m model) renderTabBar() string {
147147
var tabs []string
148-
148+
149149
for i, tab := range m.tabs {
150150
style := ui.TabStyle
151151
if i == m.activeTab {
152152
style = ui.ActiveTabStyle
153153
}
154154
tabs = append(tabs, style.Render(fmt.Sprintf("%d. %s", i+1, tab)))
155155
}
156-
156+
157157
return lipgloss.JoinHorizontal(lipgloss.Top, tabs...)
158158
}
159159

@@ -174,8 +174,8 @@ func main() {
174174
tea.WithAltScreen(),
175175
tea.WithMouseCellMotion(),
176176
)
177-
177+
178178
if _, err := p.Run(); err != nil {
179179
log.Fatal(err)
180180
}
181-
}
181+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/larkin/gitlab-runner-tui
1+
module github.com/larkinwc/gitlab-runner-tui
22

33
go 1.24.3
44

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
# GitLab Runner TUI Installer Script
55

6-
REPO="larkin/gitlab-runner-tui"
6+
REPO="larkinwc/gitlab-runner-tui"
77
INSTALL_DIR="/usr/local/bin"
88
BINARY_NAME="gitlab-runner-tui"
99

pkg/config/parser.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/larkin/gitlab-runner-tui/pkg/runner"
7+
"github.com/larkinwc/gitlab-runner-tui/pkg/runner"
88
"gopkg.in/yaml.v3"
99
)
1010

@@ -68,11 +68,11 @@ func (cm *ConfigManager) UpdateConcurrency(concurrent int) error {
6868
if cm.config == nil {
6969
return fmt.Errorf("no config loaded")
7070
}
71-
71+
7272
if concurrent < 1 {
7373
return fmt.Errorf("concurrent must be at least 1")
7474
}
75-
75+
7676
cm.config.Concurrent = concurrent
7777
return nil
7878
}
@@ -81,11 +81,11 @@ func (cm *ConfigManager) UpdateCheckInterval(interval int) error {
8181
if cm.config == nil {
8282
return fmt.Errorf("no config loaded")
8383
}
84-
84+
8585
if interval < 0 {
8686
return fmt.Errorf("check_interval must be non-negative")
8787
}
88-
88+
8989
cm.config.CheckInterval = interval
9090
return nil
9191
}
@@ -94,7 +94,7 @@ func (cm *ConfigManager) UpdateLogLevel(level string) error {
9494
if cm.config == nil {
9595
return fmt.Errorf("no config loaded")
9696
}
97-
97+
9898
validLevels := map[string]bool{
9999
"debug": true,
100100
"info": true,
@@ -103,11 +103,11 @@ func (cm *ConfigManager) UpdateLogLevel(level string) error {
103103
"fatal": true,
104104
"panic": true,
105105
}
106-
106+
107107
if !validLevels[level] {
108108
return fmt.Errorf("invalid log level: %s", level)
109109
}
110-
110+
111111
cm.config.LogLevel = level
112112
return nil
113113
}
@@ -116,13 +116,13 @@ func (cm *ConfigManager) GetRunner(name string) (*runner.RunnerConfig, int) {
116116
if cm.config == nil {
117117
return nil, -1
118118
}
119-
119+
120120
for i, r := range cm.config.Runners {
121121
if r.Name == name {
122122
return &cm.config.Runners[i], i
123123
}
124124
}
125-
125+
126126
return nil, -1
127127
}
128128

@@ -131,11 +131,11 @@ func (cm *ConfigManager) UpdateRunnerLimit(name string, limit int) error {
131131
if runner == nil {
132132
return fmt.Errorf("runner %s not found", name)
133133
}
134-
134+
135135
if limit < 0 {
136136
return fmt.Errorf("limit must be non-negative")
137137
}
138-
138+
139139
cm.config.Runners[idx].Limit = limit
140140
return nil
141141
}
@@ -145,7 +145,7 @@ func (cm *ConfigManager) UpdateRunnerTags(name string, tags []string) error {
145145
if runner == nil {
146146
return fmt.Errorf("runner %s not found", name)
147147
}
148-
148+
149149
cm.config.Runners[idx].TagList = tags
150150
return nil
151151
}
@@ -155,7 +155,7 @@ func (cm *ConfigManager) UpdateRunnerUntagged(name string, runUntagged bool) err
155155
if runner == nil {
156156
return fmt.Errorf("runner %s not found", name)
157157
}
158-
158+
159159
cm.config.Runners[idx].RunUntagged = runUntagged
160160
return nil
161161
}
@@ -165,7 +165,7 @@ func (cm *ConfigManager) UpdateRunnerLocked(name string, locked bool) error {
165165
if runner == nil {
166166
return fmt.Errorf("runner %s not found", name)
167167
}
168-
168+
169169
cm.config.Runners[idx].Locked = locked
170170
return nil
171171
}
@@ -175,11 +175,11 @@ func (cm *ConfigManager) UpdateRunnerMaxBuilds(name string, maxBuilds int) error
175175
if runner == nil {
176176
return fmt.Errorf("runner %s not found", name)
177177
}
178-
178+
179179
if maxBuilds < 0 {
180180
return fmt.Errorf("max_builds must be non-negative")
181181
}
182-
182+
183183
cm.config.Runners[idx].MaxBuilds = maxBuilds
184184
return nil
185185
}
@@ -188,11 +188,11 @@ func (cm *ConfigManager) Validate() error {
188188
if cm.config == nil {
189189
return fmt.Errorf("no config loaded")
190190
}
191-
191+
192192
if cm.config.Concurrent < 1 {
193193
return fmt.Errorf("concurrent must be at least 1")
194194
}
195-
195+
196196
for i, runner := range cm.config.Runners {
197197
if runner.Name == "" {
198198
return fmt.Errorf("runner %d has no name", i)
@@ -206,7 +206,7 @@ func (cm *ConfigManager) Validate() error {
206206
if runner.Executor == "" {
207207
return fmt.Errorf("runner %s has no executor", runner.Name)
208208
}
209-
209+
210210
switch runner.Executor {
211211
case "docker", "docker+machine", "docker-ssh", "docker-ssh+machine":
212212
if runner.Docker == nil || runner.Docker.Image == "" {
@@ -218,6 +218,6 @@ func (cm *ConfigManager) Validate() error {
218218
}
219219
}
220220
}
221-
221+
222222
return nil
223-
}
223+
}

0 commit comments

Comments
 (0)