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

Function commandManifestDestructiveLevel

cmd/help_json.go:508–513  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

506}
507
508func commandManifestDestructiveLevel(cmd *cobra.Command) string {
509 if levels := commandAnnotationList(cmd, commandDestructiveLevelAnnotation); len(levels) > 0 {
510 return levels[0]
511 }
512 return destructiveLevelNone
513}
514
515func commandAnnotationList(cmd *cobra.Command, key string) []string {
516 if cmd == nil || cmd.Annotations == nil {

Callers 1

jsonCommandManifestForFunction · 0.85

Calls 1

commandAnnotationListFunction · 0.85

Tested by

no test coverage detected