Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename project to kubectl-fuzzy #15

Merged
merged 3 commits into from
Jun 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
builds:
- main: ./cmd/kubectl-fzf/kubectl-fzf.go
binary: kubectl-fzf
- main: ./cmd/kubectl-fuzzy/kubectl-fuzzy.go
binary: kubectl-fuzzy
goos:
- windows
- darwin
Expand All @@ -11,7 +11,7 @@ builds:
- CGO_ENABLED=0
- GO111MODULE=on
ldflags:
- -s -w -X github.com/d-kuro/kubectl-fzf/pkg/cmd.Revision={{ .ShortCommit }}
- -s -w -X github.com/d-kuro/kubectl-fuzzy/pkg/cmd.Revision={{ .ShortCommit }}
checksum:
name_template: checksums.txt
archives:
Expand All @@ -27,4 +27,4 @@ changelog:
release:
github:
owner: d-kuro
name: kubectl-fzf
name: kubectl-fuzzy
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BINARY_NAME = kubectl-fzf
LDFLAGS = -ldflags="-s -w -X \"github.com/d-kuro/kubectl-fzf/pkg/cmd.Revision=$(shell git rev-parse --short HEAD)\""
BINARY_NAME = kubectl-fuzzy
LDFLAGS = -ldflags="-s -w -X \"github.com/d-kuro/kubectl-fuzzy/pkg/cmd.Revision=$(shell git rev-parse --short HEAD)\""

export GO111MODULE=on

Expand All @@ -10,5 +10,5 @@ test:
lint:
golangci-lint run
install:
go install ./cmd/kubectl-fzf/
go install ./cmd/kubectl-fuzzy/

22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# kubectl-fzf
# kubectl-fuzzy

![](https://github.com/d-kuro/kubectl-fzf/workflows/Build/badge.svg)
![](https://github.com/d-kuro/kubectl-fuzzy/workflows/Build/badge.svg)

Fuzzy Finder kubectl!

[![asciicast](https://asciinema.org/a/kMNLBIDAGLaNl6JcgJnUACCUr.svg)](https://asciinema.org/a/kMNLBIDAGLaNl6JcgJnUACCUr)
![](./docs/assets/kubectl-fuzzy.gif)

## Summary

`kubectl-fzf` is a kubectl plugin providing a fuzzy finder selector.
`kubectl-fuzzy` is a kubectl plugin providing a fuzzy finder selector.
Uses [go-fuzzyfinder](https://github.com/ktr0731/go-fuzzyfinder), so there is no dependency on fzf binaries or anything else.

> 📝 Notes
Expand All @@ -20,14 +20,14 @@ Uses [go-fuzzyfinder](https://github.com/ktr0731/go-fuzzyfinder), so there is no
## Install

```shell
git clone https://github.com/d-kuro/kubectl-fzf.git
cd kubectl-fzf
git clone https://github.com/d-kuro/kubectl-fuzzy.git
cd kubectl-fuzzy
make install
```

or

Please download the binaries from the [release page](https://github.com/d-kuro/kubectl-fzf/releases).
Please download the binaries from the [release page](https://github.com/d-kuro/kubectl-fuzzy/releases).

## Usage

Expand All @@ -36,8 +36,8 @@ $ kubectl fzf -h
Fuzzy Finder kubectl

Usage:
kubectl-fzf [flags]
kubectl-fzf [command]
kubectl-fuzzy [flags]
kubectl-fuzzy [command]

Available Commands:
exec Selecting a Pod with the fuzzy finder and execute a command in a container
Expand All @@ -46,9 +46,9 @@ Available Commands:
version Show version

Flags:
-h, --help help for kubectl-fzf
-h, --help help for kubectl-fuzzy

Use "kubectl-fzf [command] --help" for more information about a command.
Use "kubectl-fuzzy [command] --help" for more information about a command.
```

## Support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"golang.org/x/sync/errgroup"
"k8s.io/cli-runtime/pkg/genericclioptions"

"github.com/d-kuro/kubectl-fzf/pkg/cmd"
"github.com/d-kuro/kubectl-fzf/pkg/signal"
"github.com/d-kuro/kubectl-fuzzy/pkg/cmd"
"github.com/d-kuro/kubectl-fuzzy/pkg/signal"
)

func main() {
flags := pflag.NewFlagSet("kubectl-fzf", pflag.ExitOnError)
flags := pflag.NewFlagSet("kubectl-fuzzy", pflag.ExitOnError)
pflag.CommandLine = flags

ctx := context.Background()
Expand Down
Binary file added docs/assets/kubectl-fuzzy.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/d-kuro/kubectl-fzf
module github.com/d-kuro/kubectl-fuzzy

go 1.14

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"k8s.io/kubectl/pkg/util/interrupt"
"k8s.io/kubectl/pkg/util/term"

"github.com/d-kuro/kubectl-fzf/pkg/fuzzyfinder"
"github.com/d-kuro/kubectl-fzf/pkg/kubernetes"
"github.com/d-kuro/kubectl-fuzzy/pkg/fuzzyfinder"
"github.com/d-kuro/kubectl-fuzzy/pkg/kubernetes"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"k8s.io/cli-runtime/pkg/genericclioptions"
coreclient "k8s.io/client-go/kubernetes/typed/core/v1"

"github.com/d-kuro/kubectl-fzf/pkg/fuzzyfinder"
"github.com/d-kuro/kubectl-fzf/pkg/kubernetes"
"github.com/d-kuro/kubectl-fuzzy/pkg/fuzzyfinder"
"github.com/d-kuro/kubectl-fuzzy/pkg/kubernetes"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
// NewCmdRoot return a cobra root command.
func NewCmdRoot(streams genericclioptions.IOStreams) *cobra.Command {
cmd := &cobra.Command{
Use: "kubectl-fzf",
Use: "kubectl-fuzzy",
Short: "Fuzzy Finder kubectl",
SilenceUsage: true,
RunE: func(c *cobra.Command, args []string) error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"
)

const Version = "v0.0.1"
const Version = "v1.0.0"

var Revision = "development"

Expand Down