mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-08-24 10:28:32 +00:00
chore: clarified remove command
This commit is contained in:
parent
99704017bf
commit
cf33e291e0
@ -59,6 +59,6 @@ var removeCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
// add flag for backend
|
// remove flag for backend
|
||||||
removeCmd.Flags().StringVarP(&backend, "backend", "b", "", "Backend AI provider")
|
removeCmd.Flags().StringVarP(&backend, "backend", "b", "", "Backend AI provider")
|
||||||
}
|
}
|
||||||
|
6
cmd/cache/remove.go
vendored
6
cmd/cache/remove.go
vendored
@ -26,8 +26,8 @@ import (
|
|||||||
// removeCmd represents the remove command
|
// removeCmd represents the remove command
|
||||||
var removeCmd = &cobra.Command{
|
var removeCmd = &cobra.Command{
|
||||||
Use: "remove",
|
Use: "remove",
|
||||||
Short: "Remove a remote cache",
|
Short: "Remove the remote cache",
|
||||||
Long: `This command allows you to remove a remote cache and use the default filecache.`,
|
Long: `This command allows you to remove the remote cache and use the default filecache.`,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
// Remove the remote cache
|
// Remove the remote cache
|
||||||
@ -51,10 +51,10 @@ var removeCmd = &cobra.Command{
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
color.Green("Successfully removed the remote cache")
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
CacheCmd.AddCommand(removeCmd)
|
CacheCmd.AddCommand(removeCmd)
|
||||||
removeCmd.Flags().StringVarP(&bucketname, "bucket", "b", "", "The name of the bucket to use for the cache")
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user