mirror of
https://github.com/ahmetb/kubectx.git
synced 2026-03-17 11:22:16 +00:00
Compare commits
1 Commits
dependabot
...
abalkan/re
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
961fc1b6a8 |
2
.github/workflows/bash-frozen.yml
vendored
2
.github/workflows/bash-frozen.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Comment on PR if author is not ahmetb
|
- name: Comment on PR if author is not ahmetb
|
||||||
if: github.event.pull_request.user.login != 'ahmetb'
|
if: github.event.pull_request.user.login != 'ahmetb'
|
||||||
uses: actions/github-script@v8
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const body = [
|
const body = [
|
||||||
|
|||||||
@@ -52,14 +52,6 @@ func (op InteractiveSwitchOp) Run(_, stderr io.Writer) error {
|
|||||||
return fmt.Errorf("kubeconfig error: %w", err)
|
return fmt.Errorf("kubeconfig error: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
ctxNames, err := kc.ContextNames()
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("failed to get context names: %w", err)
|
|
||||||
}
|
|
||||||
if len(ctxNames) == 0 {
|
|
||||||
return errors.New("no contexts found in the kubeconfig file")
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd := exec.Command("fzf", "--ansi", "--no-preview")
|
cmd := exec.Command("fzf", "--ansi", "--no-preview")
|
||||||
var out bytes.Buffer
|
var out bytes.Buffer
|
||||||
cmd.Stdin = os.Stdin
|
cmd.Stdin = os.Stdin
|
||||||
|
|||||||
@@ -46,14 +46,6 @@ func (op InteractiveSwitchOp) Run(_, stderr io.Writer) error {
|
|||||||
return fmt.Errorf("kubeconfig error: %w", err)
|
return fmt.Errorf("kubeconfig error: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
ctxNames, err := kc.ContextNames()
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("failed to get context names: %w", err)
|
|
||||||
}
|
|
||||||
if len(ctxNames) == 0 {
|
|
||||||
return errors.New("no contexts found in the kubeconfig file")
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd := exec.Command("fzf", "--ansi", "--no-preview")
|
cmd := exec.Command("fzf", "--ansi", "--no-preview")
|
||||||
var out bytes.Buffer
|
var out bytes.Buffer
|
||||||
cmd.Stdin = os.Stdin
|
cmd.Stdin = os.Stdin
|
||||||
|
|||||||
Reference in New Issue
Block a user