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

Function parseRelocationIfExists

cmd/relocation_if_exists.go:27–36  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

25}
26
27func parseRelocationIfExists(cmd *cobra.Command) (string, error) {
28 if cmd == nil {
29 return relocationIfExistsFail, nil
30 }
31 ifExists, err := cmd.Flags().GetString("if-exists")
32 if err != nil {
33 return relocationIfExistsFail, nil
34 }
35 return normalizeRelocationIfExists(ifExists)
36}
37
38func normalizeRelocationIfExists(ifExists string) (string, error) {
39 switch ifExists {

Callers 1

parseRelocationOptionsFunction · 0.85

Calls 1

Tested by

no test coverage detected