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

Function parsePutIfExists

cmd/put.go:480–486  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

478}
479
480func parsePutIfExists(cmd *cobra.Command) (string, error) {
481 ifExists, err := cmd.Flags().GetString("if-exists")
482 if err != nil {
483 return "", err
484 }
485 return normalizePutIfExists(ifExists)
486}
487
488func normalizePutIfExists(ifExists string) (string, error) {
489 if ifExists == "" {

Callers 1

parsePutOptionsFunction · 0.85

Calls 1

normalizePutIfExistsFunction · 0.85

Tested by

no test coverage detected