mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 13:57:52 +08:00
Some checks are pending
CodeQL / codeql (push) Waiting to run
Docker Build / docker-build (push) Waiting to run
Gateway Conformance / gateway-conformance (push) Waiting to run
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Waiting to run
Go Build / go-build (push) Waiting to run
Go Check / go-check (push) Waiting to run
Go Lint / go-lint (push) Waiting to run
Go Test / go-test (push) Waiting to run
Interop / interop-prep (push) Waiting to run
Interop / helia-interop (push) Blocked by required conditions
Interop / ipfs-webui (push) Blocked by required conditions
Sharness / sharness-test (push) Waiting to run
Spell Check / spellcheck (push) Waiting to run
- 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,
|
|
}
|