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

Function setShareLinkOutputJSON

cmd/share_link_json_test.go:377–385  ·  view source on GitHub ↗
(t *testing.T, cmd *cobra.Command)

Source from the content-addressed store, hash-verified

375}
376
377func setShareLinkOutputJSON(t *testing.T, cmd *cobra.Command) {
378 t.Helper()
379 if cmd.Flags().Lookup(outputFlag) == nil {
380 cmd.Flags().String(outputFlag, "text", "")
381 }
382 if err := cmd.Flags().Set(outputFlag, "json"); err != nil {
383 t.Fatalf("set output: %v", err)
384 }
385}
386
387func decodeJSONOutput(t *testing.T, data []byte, out any) {
388 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected