github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/cli/commands/resources/service/new.go (about) 1 package service 2 3 import ( 4 structureSpec "github.com/taubyte/go-specs/structure" 5 resources "github.com/taubyte/tau-cli/cli/commands/resources/common" 6 "github.com/taubyte/tau-cli/cli/common" 7 serviceFlags "github.com/taubyte/tau-cli/flags/service" 8 serviceI18n "github.com/taubyte/tau-cli/i18n/service" 9 serviceLib "github.com/taubyte/tau-cli/lib/service" 10 servicePrompts "github.com/taubyte/tau-cli/prompts/service" 11 serviceTable "github.com/taubyte/tau-cli/table/service" 12 "github.com/urfave/cli/v2" 13 ) 14 15 func (link) New() common.Command { 16 return (&resources.New[*structureSpec.Service]{ 17 PromptsNew: servicePrompts.New, 18 TableConfirm: serviceTable.Confirm, 19 PromptsCreateThis: servicePrompts.CreateThis, 20 LibNew: serviceLib.New, 21 I18nCreated: serviceI18n.Created, 22 23 UniqueFlags: []cli.Flag{ 24 serviceFlags.Protocol, 25 }, 26 }).Default() 27 }