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