From a8d3658f2dc7a1f832ff87fff47ee3bdd249c2ba Mon Sep 17 00:00:00 2001 From: Lucas Molas Date: Tue, 1 Feb 2022 11:21:59 -0300 Subject: [PATCH 1/2] feat(cmds): add command status --- core/commands/object/diff.go | 2 ++ core/commands/object/object.go | 5 +++++ go.mod | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/commands/object/diff.go b/core/commands/object/diff.go index d83da7cec5d..c05ad59163c 100644 --- a/core/commands/object/diff.go +++ b/core/commands/object/diff.go @@ -85,6 +85,8 @@ Example: return cmds.EmitOnce(res, &Changes{out}) }, + Status: cmds.Deprecated, + Type: Changes{}, Encoders: cmds.EncoderMap{ cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, out *Changes) error { diff --git a/core/commands/object/object.go b/core/commands/object/object.go index 1e145208a59..78594301453 100644 --- a/core/commands/object/object.go +++ b/core/commands/object/object.go @@ -103,6 +103,7 @@ is the raw data of the object. return res.Emit(data) }, + Status: cmds.Deprecated, } // ObjectLinksCmd object links command @@ -177,6 +178,8 @@ multihash. Provided for legacy reasons. Use 'ipfs dag get' instead. }), }, Type: &Object{}, + Status: cmds.Experimental, + } // ObjectGetCmd object get command @@ -268,6 +271,8 @@ DEPRECATED and provided for legacy reasons. Use 'ipfs dag get' instead. return err }), }, + Status: cmds.Experimental, + } // ObjectStatCmd object stat command diff --git a/go.mod b/go.mod index 0ea335814d6..fcb0a5db0da 100644 --- a/go.mod +++ b/go.mod @@ -30,7 +30,7 @@ require ( github.com/ipfs/go-graphsync v0.11.0 github.com/ipfs/go-ipfs-blockstore v1.1.2 github.com/ipfs/go-ipfs-chunker v0.0.5 - github.com/ipfs/go-ipfs-cmds v0.6.0 + github.com/ipfs/go-ipfs-cmds v0.6.1-0.20220201141850-01819a11065d github.com/ipfs/go-ipfs-config v0.18.0 github.com/ipfs/go-ipfs-exchange-interface v0.1.0 github.com/ipfs/go-ipfs-exchange-offline v0.1.1 From a50116c8071aad6e21e1ef27875f6a486bc5e8cc Mon Sep 17 00:00:00 2001 From: Lucas Molas Date: Tue, 1 Feb 2022 11:25:13 -0300 Subject: [PATCH 2/2] go.sum --- go.sum | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go.sum b/go.sum index 49a1addffe4..afbc0ef1b74 100644 --- a/go.sum +++ b/go.sum @@ -475,6 +475,8 @@ github.com/ipfs/go-ipfs-chunker v0.0.5 h1:ojCf7HV/m+uS2vhUGWcogIIxiO5ubl5O57Q7Na github.com/ipfs/go-ipfs-chunker v0.0.5/go.mod h1:jhgdF8vxRHycr00k13FM8Y0E+6BoalYeobXmUyTreP8= github.com/ipfs/go-ipfs-cmds v0.6.0 h1:yAxdowQZzoFKjcLI08sXVNnqVj3jnABbf9smrPQmBsw= github.com/ipfs/go-ipfs-cmds v0.6.0/go.mod h1:ZgYiWVnCk43ChwoH8hAmI1IRbuVtq3GSTHwtRB/Kqhk= +github.com/ipfs/go-ipfs-cmds v0.6.1-0.20220201141850-01819a11065d h1:FM5C1ZxLHZADZ/L0nHs6uaJq4MVgboNRvEtw07256Ns= +github.com/ipfs/go-ipfs-cmds v0.6.1-0.20220201141850-01819a11065d/go.mod h1:y0bflH6m4g6ary4HniYt98UqbrVnRxmRarzeMdLIUn0= github.com/ipfs/go-ipfs-config v0.18.0 h1:Ta1aNGNEq6RIvzbw7dqzCVZJKb7j+Dd35JFnAOCpT8g= github.com/ipfs/go-ipfs-config v0.18.0/go.mod h1:wz2lKzOjgJeYJa6zx8W9VT7mz+iSd0laBMqS/9wmX6A= github.com/ipfs/go-ipfs-delay v0.0.0-20181109222059-70721b86a9a8/go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw=