MCPcopy Create free account
hub / github.com/dropbox/dbxcli / rootNamespaceID

Function rootNamespaceID

cmd/root.go:275–288  ·  view source on GitHub ↗
(account *users.FullAccount)

Source from the content-addressed store, hash-verified

273}
274
275func 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
291var RootCmd = &cobra.Command{

Callers 2

withRootNamespaceFunction · 0.85
TestRootNamespaceIDFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestRootNamespaceIDFunction · 0.68