Skip to content

Commit

Permalink
cmd/tetra: deprecate the use of the sensors command
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mtardy committed Oct 9, 2023
1 parent ac5e62b commit 3578d89
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/tetra/sensors/sensors.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ import (
"github.com/spf13/cobra"
)

// Deprecated: let's 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{
Expand Down

0 comments on commit 3578d89

Please sign in to comment.