github.com/getgauge/gauge@v1.6.9/cmd/telemetry.go (about) 1 /*---------------------------------------------------------------- 2 * Copyright (c) ThoughtWorks, Inc. 3 * Licensed under the Apache License, Version 2.0 4 * See LICENSE in the project root for license information. 5 *----------------------------------------------------------------*/ 6 7 package cmd 8 9 import ( 10 "github.com/getgauge/gauge/logger" 11 "github.com/spf13/cobra" 12 ) 13 14 func init() { 15 // This command is deprecated, it's going to be removed in the future 16 telemetryCmd := &cobra.Command{ 17 Use: "telemetry [command]", 18 Run: func(cmd *cobra.Command, args []string) { 19 logger.Infof(true, "Gauge does not gather telemetry data. This command exists to notify this deprecation and shall be removed in the future") 20 }, 21 Hidden: true, 22 } 23 24 GaugeCmd.AddCommand(telemetryCmd) 25 }