Move to frostfs-node
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
parent
42554a9298
commit
923f84722a
934 changed files with 3470 additions and 3451 deletions
|
@ -1,50 +0,0 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/cmd/neofs-lens/internal/blobovnicza"
|
||||
"github.com/nspcc-dev/neofs-node/cmd/neofs-lens/internal/meta"
|
||||
"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"
|
||||
)
|
||||
|
||||
var command = &cobra.Command{
|
||||
Use: "neofs-lens",
|
||||
Short: "NeoFS Storage Engine Lens",
|
||||
Long: `NeoFS Storage Engine Lens provides tools to browse the contents of the NeoFS storage engine.`,
|
||||
RunE: entryPoint,
|
||||
SilenceUsage: true,
|
||||
}
|
||||
|
||||
func entryPoint(cmd *cobra.Command, _ []string) error {
|
||||
printVersion, _ := cmd.Flags().GetBool("version")
|
||||
if printVersion {
|
||||
cmd.Print(misc.BuildInfo("NeoFS Lens"))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
return cmd.Usage()
|
||||
}
|
||||
|
||||
func init() {
|
||||
// use stdout as default output for cmd.Print()
|
||||
command.SetOut(os.Stdout)
|
||||
command.Flags().Bool("version", false, "Application version")
|
||||
command.AddCommand(
|
||||
blobovnicza.Root,
|
||||
meta.Root,
|
||||
writecache.Root,
|
||||
gendoc.Command(command),
|
||||
)
|
||||
}
|
||||
|
||||
func main() {
|
||||
err := command.Execute()
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue