dashboard_unsupported.go 532 B

1234567891011121314151617181920212223242526272829303132
  1. //go:build !linux
  2. package main
  3. import (
  4. "runtime"
  5. log "github.com/sirupsen/logrus"
  6. "github.com/spf13/cobra"
  7. )
  8. type cliDashboard struct{
  9. cfg configGetter
  10. }
  11. func NewCLIDashboard(cfg configGetter) *cliDashboard {
  12. return &cliDashboard{
  13. cfg: cfg,
  14. }
  15. }
  16. func (cli cliDashboard) NewCommand() *cobra.Command {
  17. cmd := &cobra.Command{
  18. Use: "dashboard",
  19. DisableAutoGenTag: true,
  20. Run: func(_ *cobra.Command, _ []string) {
  21. log.Infof("Dashboard command is disabled on %s", runtime.GOOS)
  22. },
  23. }
  24. return cmd
  25. }