From a6a5ce3c62da3c173b5a1ac98836eb1cbe1e20f7 Mon Sep 17 00:00:00 2001 From: Mahe Tardy Date: Mon, 9 Oct 2023 09:50:00 +0000 Subject: [PATCH] cmd/tetra: deprecate the use of the sensors command Enable and disable were the only features that were only available trough the sensors command and gRPCs, now that they are implemented in the tracingpolicy interface, let's deprecate/hide the sensors command. Signed-off-by: Mahe Tardy --- cmd/tetra/sensors/sensors.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/tetra/sensors/sensors.go b/cmd/tetra/sensors/sensors.go index ffd8a35cd2b..64cdb767d40 100644 --- a/cmd/tetra/sensors/sensors.go +++ b/cmd/tetra/sensors/sensors.go @@ -12,10 +12,13 @@ import ( "github.com/spf13/cobra" ) +// Let's deprecated and remove this sensor interface and use the tracing policy +// gRPCs. Those are accessible trough the tracingpolicy command. func New() *cobra.Command { sensorsCmd := &cobra.Command{ - Use: "sensors", - Short: "Manage sensors", + Use: "sensors", + Short: "Manage sensors", + Deprecated: "please use the tracingpolicy command instead.", } sensorsListCmd := &cobra.Command{