Skip to content

Commit

Permalink
fix: Repo and product to name to match helm plugin command
Browse files Browse the repository at this point in the history
  • Loading branch information
pidanou committed Dec 22, 2024
1 parent a713d84 commit ab3e0d3
Show file tree
Hide file tree
Showing 30 changed files with 61 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: go mod tidy

- name: 🛠️ Build Go Project
run: go build -o helmtui .
run: go build -o helm-tui .

test-go:
name: ✅ Run Go Tests
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Makefile for Helmtui
# Makefile for Helm-tui

# Go build settings
BINARY_NAME = helmtui
BINARY_NAME = helm-tui
SOURCE_DIR = .
BUILD_DIR = ./bin

Expand Down
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Helmtui
# Helm-tui

<img alt="Demo of Soramail" src="demos/overview.gif" width="1200" />

Helmtui is a terminal-based UI application to manage your Helm releases, charts, repositories, and plugins with ease.
Helm-tui is a terminal-based UI application to manage your Helm releases, charts, repositories, and plugins with ease.

## Features

Expand All @@ -12,15 +12,18 @@ Helmtui is a terminal-based UI application to manage your Helm releases, charts,
## Requirements

- [Helm 3](https://helm.sh/docs/intro/install/)
- [Go 1.18+](https://go.dev/doc/install)

### Optional

- [Go 1.22+](https://go.dev/doc/install)

## How to Use

1. Clone the repository:

```bash
git clone https://github.com/pidanou/helmtui.git
cd helmtui
git clone https://github.com/pidanou/helm-tui.git
cd helm-tui
```

2. Run the app directly using:
Expand All @@ -30,13 +33,13 @@ Helmtui is a terminal-based UI application to manage your Helm releases, charts,

## How to Install

Install Helmtui using `go install`:
Install Helm-tui using `helm plugin install`:

```bash
go install github.com/pidanou/helmtui@latest
helm plugin install github.com/pidanou/helm-tui
```

Once installed, you can run `helmtui` directly from your terminal.
Once installed, you can run `helm tui` directly from your terminal.

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions demos/demo.tape
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Output overview.gif

Require helmtui
Require helm-tui

Set Shell "bash"
Set FontSize 14
Set Width 1200
Set Height 600

Type "helmtui" Sleep 300ms Enter
Type "helm-tui" Sleep 300ms Enter
Sleep 1s
Enter
Sleep 1s
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
module github.com/pidanou/helmtui
module github.com/pidanou/helm-tui

go 1.22.3

require (
github.com/charmbracelet/bubbletea v1.2.4
github.com/pidanou/helmtui v0.5.0
github.com/stretchr/testify v1.10.0
)

Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELU
github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo=
github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8=
github.com/pidanou/helmtui v0.5.0 h1:CfOZYxMBHekA0ms2JQ5MOfsjx1yVpC5eb+0SyG7/wg0=
github.com/pidanou/helmtui v0.5.0/go.mod h1:RqUm9p/uqIuWFkF+WJjyOMm2MbedCkXe0UaPHdFUVho=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
Expand Down
2 changes: 1 addition & 1 deletion helpers/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/types"
)

func WriteAndOpenFile(content []byte, file string) tea.Cmd {
Expand Down
4 changes: 2 additions & 2 deletions hub/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/charmbracelet/bubbles/textinput"
"github.com/charmbracelet/bubbles/viewport"
tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/components"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/components"
"github.com/pidanou/helm-tui/types"
)

type HubModel struct {
Expand Down
2 changes: 1 addition & 1 deletion hub/hub_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/charmbracelet/bubbles/table"
tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/types"
)

func (m HubModel) searchHub() tea.Msg {
Expand Down
2 changes: 1 addition & 1 deletion hub/hub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/charmbracelet/bubbles/table"
"github.com/charmbracelet/bubbles/textinput"
tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/types"
)

// Test the initialization of the HubModel
Expand Down
4 changes: 2 additions & 2 deletions hub/hub_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package hub

import (
"github.com/charmbracelet/lipgloss"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/styles"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/styles"
)

func (m HubModel) View() string {
Expand Down
2 changes: 1 addition & 1 deletion install-binary.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

# Shamelessly copied from https://github.com/databus23/helm-tui
# Shamelessly copied from https://github.com/databus23/helm-diff

PROJECT_NAME="helm-tui"
PROJECT_GH="pidanou/$PROJECT_NAME"
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"

tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helm-tui/helpers"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: "0.5.0"
usage: "Simple terminal UI for Helm"
description: "Simple terminal UI for Helm"
useTunnel: true
command: "$HELM_PLUGIN_DIR/bin/tui"
# hooks:
# install: "$HELM_PLUGIN_DIR/install-binary.sh"
# update: "$HELM_PLUGIN_DIR/install-binary.sh -u"
command: "$HELM_PLUGIN_DIR/bin/helm-tui"
hooks:
install: "$HELM_PLUGIN_DIR/install-binary.sh"
update: "$HELM_PLUGIN_DIR/install-binary.sh -u"
4 changes: 2 additions & 2 deletions releases/install_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/types"
)

func (m InstallModel) installPackage(mode string) tea.Cmd {
Expand Down
2 changes: 1 addition & 1 deletion releases/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/types"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions releases/install_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/charmbracelet/lipgloss"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/styles"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/styles"
)

func (m InstallModel) View() string {
Expand Down
4 changes: 2 additions & 2 deletions releases/overview.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"github.com/charmbracelet/bubbles/table"
"github.com/charmbracelet/bubbles/viewport"
tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/components"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/components"
"github.com/pidanou/helm-tui/types"
)

type selectedView int
Expand Down
2 changes: 1 addition & 1 deletion releases/overview_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/charmbracelet/bubbles/table"
tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/types"
)

func (m Model) list() tea.Msg {
Expand Down
4 changes: 2 additions & 2 deletions releases/overview_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strings"

"github.com/charmbracelet/lipgloss"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/styles"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/styles"
)

func (m Model) View() string {
Expand Down
4 changes: 2 additions & 2 deletions releases/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/charmbracelet/bubbles/help"
"github.com/charmbracelet/bubbles/textinput"
tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/types"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions releases/upgrade_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/types"
)

func (m *UpgradeModel) updateInputs(msg tea.Msg) tea.Cmd {
Expand Down
4 changes: 2 additions & 2 deletions releases/upgrade_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/charmbracelet/lipgloss"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/styles"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/styles"
)

func (m UpgradeModel) View() string {
Expand Down
2 changes: 1 addition & 1 deletion repositories/add_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/types"
)

func (m *AddModel) updateInputs(msg tea.Msg) tea.Cmd {
Expand Down
4 changes: 2 additions & 2 deletions repositories/add_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/charmbracelet/lipgloss"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/styles"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/styles"
)

func (m AddModel) View() string {
Expand Down
4 changes: 2 additions & 2 deletions repositories/install_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/types"
)

func (m *InstallModel) updateInputs(msg tea.Msg) tea.Cmd {
Expand Down
4 changes: 2 additions & 2 deletions repositories/install_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/charmbracelet/lipgloss"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/styles"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/styles"
)

func (m InstallModel) View() string {
Expand Down
4 changes: 2 additions & 2 deletions repositories/overview.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"github.com/charmbracelet/bubbles/table"
"github.com/charmbracelet/bubbles/viewport"
tea "github.com/charmbracelet/bubbletea"
"github.com/pidanou/helmtui/components"
"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/components"
"github.com/pidanou/helm-tui/types"
)

type selectedView int
Expand Down
2 changes: 1 addition & 1 deletion repositories/overview_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/charmbracelet/bubbles/table"
tea "github.com/charmbracelet/bubbletea"

"github.com/pidanou/helmtui/types"
"github.com/pidanou/helm-tui/types"
)

func (m Model) list() tea.Msg {
Expand Down
4 changes: 2 additions & 2 deletions repositories/overview_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package repositories
import (
"github.com/charmbracelet/bubbles/table"
"github.com/charmbracelet/lipgloss"
"github.com/pidanou/helmtui/helpers"
"github.com/pidanou/helmtui/styles"
"github.com/pidanou/helm-tui/helpers"
"github.com/pidanou/helm-tui/styles"
)

func (m Model) View() string {
Expand Down

0 comments on commit ab3e0d3

Please sign in to comment.