github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/cmd/state/internal/cmdtree/manifest.go (about) 1 package cmdtree 2 3 import ( 4 "github.com/ActiveState/cli/internal/captain" 5 "github.com/ActiveState/cli/internal/locale" 6 "github.com/ActiveState/cli/internal/primer" 7 "github.com/ActiveState/cli/internal/runners/manifest" 8 ) 9 10 func newManifestCommmand(prime *primer.Values) *captain.Command { 11 runner := manifest.NewManifest(prime) 12 13 cmd := captain.NewCommand( 14 "manifest", 15 locale.Tl("manifest_title", "Listing Requirements For Your Project"), 16 locale.Tl("manifest_cmd_description", "List the requirements of the current project"), 17 prime, 18 []*captain.Flag{}, 19 []*captain.Argument{}, 20 func(_ *captain.Command, _ []string) error { 21 return runner.Run() 22 }, 23 ) 24 25 cmd.SetGroup(PackagesGroup) 26 cmd.SetSupportsStructuredOutput() 27 28 return cmd 29 }