github.com/fastly/cli@v1.7.2-0.20240304164155-9d0f1d77c3bf/pkg/commands/stats/root.go (about)

     1  package stats
     2  
     3  import (
     4  	"io"
     5  
     6  	"github.com/fastly/cli/pkg/argparser"
     7  	"github.com/fastly/cli/pkg/global"
     8  )
     9  
    10  // RootCommand dispatches all "stats" commands.
    11  type RootCommand struct {
    12  	argparser.Base
    13  }
    14  
    15  // NewRootCommand returns a new top level "stats" command.
    16  func NewRootCommand(parent argparser.Registerer, g *global.Data) *RootCommand {
    17  	var c RootCommand
    18  	c.Globals = g
    19  	c.CmdClause = parent.Command("stats", "View historical and realtime statistics for a Fastly service")
    20  	return &c
    21  }
    22  
    23  // Exec implements the command interface.
    24  func (c *RootCommand) Exec(_ io.Reader, _ io.Writer) error {
    25  	panic("unreachable")
    26  }