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

Function newRelocationTestCommand

cmd/cp_test.go:537–551  ·  view source on GitHub ↗
(stdout, stderr *bytes.Buffer)

Source from the content-addressed store, hash-verified

535}
536
537func newRelocationTestCommand(stdout, stderr *bytes.Buffer) *cobra.Command {
538 cmd := &cobra.Command{}
539 cmd.Flags().String(outputFlag, string(output.FormatText), "")
540 cmd.Flags().String("if-exists", relocationIfExistsFail, "")
541 if err := cmd.Flags().Set(outputFlag, string(output.FormatJSON)); err != nil {
542 panic(err)
543 }
544 if stdout != nil {
545 cmd.SetOut(stdout)
546 }
547 if stderr != nil {
548 cmd.SetErr(stderr)
549 }
550 return cmd
551}
552
553type relocationOutput struct {
554 Input map[string]any `json:"input"`

Calls

no outgoing calls

Tested by

no test coverage detected