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

Function tokenType

cmd/root.go:178–186  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

176}
177
178func tokenType(cmd *cobra.Command) string {
179 if cmd.Parent().Name() == "team" {
180 return tokenTeamManage
181 }
182 if asMember, _ := cmd.Flags().GetString("as-member"); asMember != "" {
183 return tokenTeamAccess
184 }
185 return tokenPersonal
186}
187
188func makeDropboxConfig(token string, verbose bool, asMember string, domain string) dropbox.Config {
189 logLevel := dropbox.LogOff

Callers 1

initDbxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected