(account *users.FullAccount)
| 273 | } |
| 274 | |
| 275 | func rootNamespaceID(account *users.FullAccount) string { |
| 276 | if account == nil { |
| 277 | return "" |
| 278 | } |
| 279 | |
| 280 | switch ri := account.RootInfo.(type) { |
| 281 | case *common.TeamRootInfo: |
| 282 | return ri.RootNamespaceId |
| 283 | case *common.UserRootInfo: |
| 284 | return ri.RootNamespaceId |
| 285 | default: |
| 286 | return "" |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | // RootCmd represents the base command when called without any subcommands |
| 291 | var RootCmd = &cobra.Command{ |
no outgoing calls