Skip to content

Commit

Permalink
update refs
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskim06 committed Feb 23, 2023
1 parent 50137f9 commit 5a4c1f2
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kubectl-ptop
kubectl-topui
out/
demo.tape
demos/
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ before:
hooks:
- go mod download
builds:
- id: kubectl-ptop
- id: kubectl-topui
env:
- CGO_ENABLED=0
goos:
Expand All @@ -12,7 +12,7 @@ builds:
- amd64
archives:
- builds:
- kubectl-ptop
- kubectl-topui
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: false
format: tar.gz
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build:
go build -o out/kubectl-ptop
go build -o out/kubectl-topui

clean:
rm -r out
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# kubectl-ptop
# kubectl-topui

![](./demo.gif)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/chriskim06/kubectl-ptop
module github.com/chriskim06/kubectl-topui

go 1.15

Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"os"

tea "github.com/charmbracelet/bubbletea"
"github.com/chriskim06/kubectl-ptop/internal/metrics"
"github.com/chriskim06/kubectl-ptop/internal/ui"
"github.com/chriskim06/kubectl-topui/internal/metrics"
"github.com/chriskim06/kubectl-topui/internal/ui"
"github.com/spf13/cobra"
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/kubectl/pkg/cmd/top"
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/kubectl/pkg/cmd/top"

"github.com/chriskim06/kubectl-ptop/internal/metrics"
"github.com/chriskim06/kubectl-ptop/internal/ui"
"github.com/chriskim06/kubectl-topui/internal/metrics"
"github.com/chriskim06/kubectl-topui/internal/ui"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ var (
interval = 3
showManagedFields = false
rootCmd = &cobra.Command{
Use: "ptop",
Use: "topui",
Short: "Prettier kubectl top output",
Long: addKeyboardShortcutsToDescription(`Render kubectl top output with fancier widgets!
This shows standard top output along with a graph showing cpu and memory utilization for
the currently selected pod or node. You can also view the selected pod or node spec.
A config file can be defined at ~/.config/kubectl-ptop/config.yml with the following structure:
A config file can be defined at ~/.config/kubectl-topui/config.yml with the following structure:
theme:
selected: color
Expand Down
4 changes: 2 additions & 2 deletions internal/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/spf13/viper"
)

const configPath = "~/.config/kubectl-ptop/config.yml"
const configPath = "~/.config/kubectl-topui/config.yml"

var (
config Config
Expand Down Expand Up @@ -52,7 +52,7 @@ func initConfig() {
once.Do(func() {
viper.SetConfigName("config")
viper.SetConfigType("yaml")
viper.AddConfigPath("$HOME/.config/kubectl-ptop/")
viper.AddConfigPath("$HOME/.config/kubectl-topui/")
viper.SetDefault("theme.selected", defaultSelected)
viper.SetDefault("theme.cpuLimit", defaultLimit)
viper.SetDefault("theme.cpuUsage", defaultUsage)
Expand Down
4 changes: 2 additions & 2 deletions internal/ui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/chriskim06/asciigraph"
"github.com/chriskim06/kubectl-ptop/internal/config"
"github.com/chriskim06/kubectl-ptop/internal/metrics"
"github.com/chriskim06/kubectl-topui/internal/config"
"github.com/chriskim06/kubectl-topui/internal/metrics"
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/kubectl/pkg/cmd/top"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/graphs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/chriskim06/asciigraph"
"github.com/chriskim06/kubectl-ptop/internal/config"
"github.com/chriskim06/kubectl-topui/internal/config"
)

type Graphs struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/charmbracelet/bubbles/viewport"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/chriskim06/kubectl-ptop/internal/config"
"github.com/chriskim06/kubectl-topui/internal/config"
"github.com/muesli/reflow/padding"
"github.com/muesli/reflow/wrap"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/ui/items.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/chriskim06/kubectl-ptop/internal/config"
"github.com/chriskim06/kubectl-ptop/internal/metrics"
"github.com/chriskim06/kubectl-ptop/internal/ui/list"
"github.com/chriskim06/kubectl-topui/internal/config"
"github.com/chriskim06/kubectl-topui/internal/metrics"
"github.com/chriskim06/kubectl-topui/internal/ui/list"
"github.com/muesli/reflow/truncate"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/ui/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/charmbracelet/lipgloss"
"github.com/chriskim06/asciigraph"
"github.com/chriskim06/kubectl-ptop/internal/metrics"
"github.com/chriskim06/kubectl-topui/internal/metrics"
"k8s.io/cli-runtime/pkg/printers"
)

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.
package main

import (
"github.com/chriskim06/kubectl-ptop/internal/cmd"
"github.com/chriskim06/kubectl-topui/internal/cmd"
_ "k8s.io/client-go/plugin/pkg/client/auth"
)

Expand Down

0 comments on commit 5a4c1f2

Please sign in to comment.