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

Function commandSkipsAuth

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

Source from the content-addressed store, hash-verified

112}
113
114func commandSkipsAuth(cmd *cobra.Command) bool {
115 for c := cmd; c != nil; c = c.Parent() {
116 switch c.Name() {
117 case "__complete", "__completeNoDesc", "completion", "help", "version":
118 return true
119 }
120 }
121 return false
122}
123
124func oauthCredentials(tokenType string) string {
125 switch tokenType {

Callers 3

initDbxFunction · 0.85
commandManifestAuthModesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected