[#1714] lens: Separate commands

Separate `inspect` and `list` on `write-cache` and `blobovnicza`
subcommands.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-08-23 16:45:24 +03:00 committed by LeL
parent 387953c1e0
commit adff08ad02
12 changed files with 316 additions and 222 deletions

View file

@ -3,8 +3,8 @@ package main
import (
"os"
"github.com/nspcc-dev/neofs-node/cmd/neofs-lens/internal/commands/inspect"
cmdlist "github.com/nspcc-dev/neofs-node/cmd/neofs-lens/internal/commands/list"
"github.com/nspcc-dev/neofs-node/cmd/neofs-lens/internal/blobovnicza"
"github.com/nspcc-dev/neofs-node/cmd/neofs-lens/internal/writecache"
"github.com/nspcc-dev/neofs-node/misc"
"github.com/nspcc-dev/neofs-node/pkg/util/gendoc"
"github.com/spf13/cobra"
@ -34,8 +34,8 @@ func init() {
command.SetOut(os.Stdout)
command.Flags().Bool("version", false, "application version")
command.AddCommand(
cmdlist.Command,
inspect.Command,
blobovnicza.Root,
writecache.Root,
gendoc.Command(command),
)
}