github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/cmd/state/internal/cmdtree/learn.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/learn" 8 ) 9 10 func newLearnCommand(prime *primer.Values) *captain.Command { 11 learnRunner := learn.New(prime) 12 13 return captain.NewCommand( 14 "learn", 15 locale.Tl("learn_title", "Learn about the State Tool"), 16 locale.Tl("learn_description", "Read the State Tool cheat sheet to learn about common commands"), 17 prime, 18 []*captain.Flag{}, 19 []*captain.Argument{}, 20 func(cmd *captain.Command, args []string) error { 21 return learnRunner.Run() 22 }).SetGroup(UtilsGroup) 23 }