From e8ad4f8294cc376b77b7eb8ba289c30386b530f8 Mon Sep 17 00:00:00 2001 From: Shlok Chaudhari Date: Mon, 29 Jul 2024 15:08:30 -0500 Subject: [PATCH] Adding Deprecated msg to the 'browse' command --- cmd/rootCmd.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/rootCmd.go b/cmd/rootCmd.go index 32e08a4..8ed0778 100644 --- a/cmd/rootCmd.go +++ b/cmd/rootCmd.go @@ -85,10 +85,11 @@ var ( browseLocalPort int browseCmd = &cobra.Command{ - Use: "browse", - Short: "Browse the contents of PVC or VolumeSnapshot", - Long: "Browse the contents of a CSI provisioned PVC or a CSI provisioned VolumeSnapshot.", - Args: cobra.ExactArgs(1), + Use: "browse", + Short: "Browse the contents of PVC or VolumeSnapshot", + Long: "Browse the contents of a CSI provisioned PVC or a CSI provisioned VolumeSnapshot.", + Deprecated: "we recommend you to use command 'browse pvc' instead. Command 'browse pvc' will support newer updates for browsing through the contents of a PVC.", + Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { return browsePvcCmd.RunE(cmd, args) },