From e0b187a61cee506c6ddb78049e1b3a90a510fb5d Mon Sep 17 00:00:00 2001 From: shawn Date: Tue, 3 Sep 2024 16:39:28 +0800 Subject: [PATCH 1/3] feat: remove file-related commands --- core/commands/commands_test.go | 2 -- core/commands/root.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/core/commands/commands_test.go b/core/commands/commands_test.go index 0002f2d72..33d850917 100644 --- a/core/commands/commands_test.go +++ b/core/commands/commands_test.go @@ -120,8 +120,6 @@ func TestCommands(t *testing.T) { "/diag/cmds/set-time", "/diag/sys", "/dns", - "/file", - "/file/ls", "/files", "/files/chcid", "/files/cp", diff --git a/core/commands/root.go b/core/commands/root.go index da48d40ea..0f2fc851a 100644 --- a/core/commands/root.go +++ b/core/commands/root.go @@ -13,7 +13,6 @@ import ( "github.com/bittorrent/go-btfs/core/commands/storage" "github.com/bittorrent/go-btfs/core/commands/storage/challenge" "github.com/bittorrent/go-btfs/core/commands/storage/upload/upload" - unixfs "github.com/bittorrent/go-btfs/core/commands/unixfs" "github.com/bittorrent/go-btfs/core/commands/vault" cmds "github.com/bittorrent/go-btfs-cmds" @@ -161,7 +160,6 @@ var rootSubcommands = map[string]*cmds.Command{ "resolve": ResolveCmd, "swarm": SwarmCmd, "tar": TarCmd, - "file": unixfs.UnixFSCmd, "urlstore": urlStoreCmd, "version": VersionCmd, "shutdown": daemonShutdownCmd, From 320bfa880ea890eb51b263f142397c875ab92373 Mon Sep 17 00:00:00 2001 From: shawn Date: Tue, 3 Sep 2024 16:40:00 +0800 Subject: [PATCH 2/3] feat: deprecate object command --- core/commands/object/object.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/commands/object/object.go b/core/commands/object/object.go index 524e490f0..14ef54638 100644 --- a/core/commands/object/object.go +++ b/core/commands/object/object.go @@ -61,10 +61,10 @@ const ( var ObjectCmd = &cmds.Command{ Helptext: cmds.HelpText{ - Tagline: "Interact with BTFS objects.", + Tagline: "Deprecated commands to interact with dag-pb objects. Use 'dag' or 'files' instead.", ShortDescription: ` -'btfs object' is a plumbing command used to manipulate DAG objects -directly.`, +'btfs object' is a legacy plumbing command used to manipulate dag-pb objects +directly. Deprecated, use more modern 'btfs dag' and 'btfs files' instead.`, }, Subcommands: map[string]*cmds.Command{ From 1271f444f621b0c97fca739aad0c7459f8a2d2cf Mon Sep 17 00:00:00 2001 From: shawn Date: Tue, 3 Sep 2024 16:41:28 +0800 Subject: [PATCH 3/3] feat: remove tar-related commands --- core/commands/commands_test.go | 3 --- core/commands/root.go | 1 - 2 files changed, 4 deletions(-) diff --git a/core/commands/commands_test.go b/core/commands/commands_test.go index 33d850917..e8a899036 100644 --- a/core/commands/commands_test.go +++ b/core/commands/commands_test.go @@ -215,9 +215,6 @@ func TestCommands(t *testing.T) { "/swarm/filters/add", "/swarm/filters/rm", "/swarm/peers", - "/tar", - "/tar/add", - "/tar/cat", "/urlstore", "/urlstore/add", "/version", diff --git a/core/commands/root.go b/core/commands/root.go index 0f2fc851a..40192145c 100644 --- a/core/commands/root.go +++ b/core/commands/root.go @@ -159,7 +159,6 @@ var rootSubcommands = map[string]*cmds.Command{ "refs": RefsCmd, "resolve": ResolveCmd, "swarm": SwarmCmd, - "tar": TarCmd, "urlstore": urlStoreCmd, "version": VersionCmd, "shutdown": daemonShutdownCmd,