Skip to content

Commit

Permalink
Merge pull request #452 from bittorrent/feat/deprecate-command
Browse files Browse the repository at this point in the history
Feat/deprecate command
  • Loading branch information
Shawn-Huang-Tron authored Sep 3, 2024
2 parents ea22529 + 1271f44 commit b4cbe58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
5 changes: 0 additions & 5 deletions core/commands/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ func TestCommands(t *testing.T) {
"/diag/cmds/set-time",
"/diag/sys",
"/dns",
"/file",
"/file/ls",
"/files",
"/files/chcid",
"/files/cp",
Expand Down Expand Up @@ -217,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",
Expand Down
6 changes: 3 additions & 3 deletions core/commands/object/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
3 changes: 0 additions & 3 deletions core/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -160,8 +159,6 @@ var rootSubcommands = map[string]*cmds.Command{
"refs": RefsCmd,
"resolve": ResolveCmd,
"swarm": SwarmCmd,
"tar": TarCmd,
"file": unixfs.UnixFSCmd,
"urlstore": urlStoreCmd,
"version": VersionCmd,
"shutdown": daemonShutdownCmd,
Expand Down

0 comments on commit b4cbe58

Please sign in to comment.