mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-24 10:32:01 +08:00

- Move `ipfs stat reprovide` to `ipfs provide stat` - Mark `ipfs stat provide` as deprecated and replaces by `ipfs provide stat` - Mark `ipfs stat reprovide` as deprecated and replaces by `ipfs provide stat` - Remove redundant code from deprecated subcommands Closes #10869
23 lines
589 B
Go
23 lines
589 B
Go
package commands
|
|
|
|
import (
|
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
|
)
|
|
|
|
var statProvideCmd = &cmds.Command{
|
|
Status: cmds.Deprecated,
|
|
Helptext: cmds.HelpText{
|
|
Tagline: "Deprecated command, use 'ipfs provide stat' instead.",
|
|
ShortDescription: `
|
|
'ipfs stats provide' is deprecated because provide and reprovide operations
|
|
are now distinct. This command may be replaced by provide only stats in the
|
|
future.
|
|
`,
|
|
},
|
|
Arguments: provideStatCmd.Arguments,
|
|
Options: provideStatCmd.Options,
|
|
Run: provideStatCmd.Run,
|
|
Encoders: provideStatCmd.Encoders,
|
|
Type: provideStatCmd.Type,
|
|
}
|