github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/cli/commands/resources/service/query.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 serviceLib "github.com/taubyte/tau-cli/lib/service" 8 servicePrompts "github.com/taubyte/tau-cli/prompts/service" 9 serviceTable "github.com/taubyte/tau-cli/table/service" 10 ) 11 12 func (link) Query() common.Command { 13 return (&resources.Query[*structureSpec.Service]{ 14 LibListResources: serviceLib.ListResources, 15 TableList: serviceTable.List, 16 PromptsGetOrSelect: servicePrompts.GetOrSelect, 17 TableQuery: serviceTable.Query, 18 }).Default() 19 } 20 21 func (link) List() common.Command { 22 return (&resources.List[*structureSpec.Service]{ 23 LibListResources: serviceLib.ListResources, 24 TableList: serviceTable.List, 25 }).Default() 26 }