github.com/fastly/cli@v1.7.2-0.20240304164155-9d0f1d77c3bf/pkg/commands/secretstore/root.go (about) 1 package secretstore 2 3 import ( 4 "io" 5 6 "github.com/fastly/cli/pkg/argparser" 7 "github.com/fastly/cli/pkg/global" 8 ) 9 10 // RootNameStore is the base command name for secret store operations. 11 const RootNameStore = "secret-store" 12 13 // NewRootCommand returns a new command registered in the parent. 14 func NewRootCommand(parent argparser.Registerer, g *global.Data) *RootCommand { 15 c := RootCommand{ 16 Base: argparser.Base{ 17 Globals: g, 18 }, 19 } 20 21 c.CmdClause = parent.Command(RootNameStore, "Manipulate Fastly Secret Stores") 22 23 return &c 24 } 25 26 // RootCommand is the parent command for all 'store' subcommands. 27 // It should be installed under the primary root command. 28 type RootCommand struct { 29 argparser.Base 30 // no flags 31 } 32 33 // Exec implements the command interface. 34 func (c *RootCommand) Exec(_ io.Reader, _ io.Writer) error { 35 panic("unreachable") 36 }