github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/internal/cli/verify_install.go (about)

     1  package cli
     2  
     3  import (
     4  	"context"
     5  	"time"
     6  
     7  	"github.com/spf13/cobra"
     8  
     9  	"github.com/tilt-dev/tilt/internal/analytics"
    10  	"github.com/tilt-dev/tilt/pkg/model"
    11  )
    12  
    13  type verifyInstallCmd struct {
    14  }
    15  
    16  func (c *verifyInstallCmd) name() model.TiltSubcommand { return "verify-install" }
    17  
    18  func (c *verifyInstallCmd) register() *cobra.Command {
    19  	cmd := &cobra.Command{
    20  		Use:   "verify-install",
    21  		Short: "Verifies Tilt Installation",
    22  	}
    23  	return cmd
    24  }
    25  
    26  // send info including "machine" tag to the wmstats db
    27  func (c *verifyInstallCmd) run(ctx context.Context, args []string) error {
    28  	a := analytics.Get(ctx)
    29  	a.Incr("cmd.verifyInstall", nil)
    30  	defer a.Flush(time.Second)
    31  
    32  	return nil
    33  }