2019-11-14 15:57:27 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-08-19 15:59:20 +01:00
|
|
|
"github.com/spacemonkeygo/monkit/v3"
|
2019-11-14 15:57:27 +00:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
2020-03-23 19:18:20 +00:00
|
|
|
"storj.io/private/process"
|
2020-04-01 08:12:26 +01:00
|
|
|
_ "storj.io/storj/private/version" // This attaches version information during release builds.
|
2019-11-14 15:57:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2020-08-19 15:59:20 +01:00
|
|
|
mon = monkit.Package()
|
|
|
|
|
2019-11-14 15:57:27 +00:00
|
|
|
rootCmd = &cobra.Command{
|
|
|
|
Use: "segment-reaper",
|
|
|
|
Short: "A tool for detecting and deleting zombie segments",
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
process.Exec(rootCmd)
|
|
|
|
}
|