Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/deprecate command #452

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading