alexellis / kubetrim

Trim 📏 your KUBECONFIG automatically
MIT License
93 stars 6 forks source link

`--dry-run` doesn't seem to work #2

Closed echarrod closed 2 months ago

echarrod commented 2 months ago

Hello, llibrary looks cool! I followed the steps:

curl -sfLS https://get.arkade.dev | sh
arkade get kubetrim

But then when trying:

kubetrim --dry-run

I get:

flag provided but not defined: -dry-run

And additionally I can't see this flag when searching in the repo 🤔

alexellis commented 2 months ago

Hi it's --write true/false, see the --help command to learn more.. I'll update the README.

kubetrim (v0.0.1-rc2 d339c6f43c12edc298e8d7fd8bbc44a7420dfb2f) Copyright Alex Ellis (c) 2024

Sponsor Alex on GitHub: https://github.com/sponsors/alexellis

Usage of kubetrim:
kubetrim removes contexts & clusters from your kubeconfig if they are not accessible.

Set the kubeconfig file to use through the KUBECONFIG environment variable
or the default location will be used: ~/.kube/config

Options:
  -write
        Write changes to the kubeconfig file (default true)
alexellis commented 2 months ago

/lock: resolved