chore: clarified remove command

This commit is contained in:
Alex Jones 2023-05-19 08:00:52 +01:00
parent 99704017bf
commit cf33e291e0
No known key found for this signature in database
GPG Key ID: 24CCAE84BAB9AFC1
2 changed files with 4 additions and 4 deletions

View File

@ -59,6 +59,6 @@ var removeCmd = &cobra.Command{
}
func init() {
// add flag for backend
// remove flag for backend
removeCmd.Flags().StringVarP(&backend, "backend", "b", "", "Backend AI provider")
}

6
cmd/cache/remove.go vendored
View File

@ -26,8 +26,8 @@ import (
// removeCmd represents the remove command
var removeCmd = &cobra.Command{
Use: "remove",
Short: "Remove a remote cache",
Long: `This command allows you to remove a remote cache and use the default filecache.`,
Short: "Remove the remote cache",
Long: `This command allows you to remove the remote cache and use the default filecache.`,
Run: func(cmd *cobra.Command, args []string) {
// Remove the remote cache
@ -51,10 +51,10 @@ var removeCmd = &cobra.Command{
os.Exit(1)
}
color.Green("Successfully removed the remote cache")
},
}
func init() {
CacheCmd.AddCommand(removeCmd)
removeCmd.Flags().StringVarP(&bucketname, "bucket", "b", "", "The name of the bucket to use for the cache")
}