45a3c2e974
* pkg/provider: with pkg/provider merged, make a single heavy client binary and deprecate old services * add setup to gw binary too * captplanet: output what addresses everything is listening on * revert peertls/io_util changes * define config flag across all commands * use trimsuffix
32 lines
587 B
Go
32 lines
587 B
Go
// Copyright (C) 2018 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
"path/filepath"
|
|
|
|
"github.com/spf13/cobra"
|
|
"github.com/spf13/pflag"
|
|
monkit "gopkg.in/spacemonkeygo/monkit.v2"
|
|
"storj.io/storj/pkg/process"
|
|
)
|
|
|
|
var (
|
|
mon = monkit.Package()
|
|
|
|
rootCmd = &cobra.Command{
|
|
Use: "captplanet",
|
|
Short: "Captain Planet! With our powers combined!",
|
|
}
|
|
|
|
defaultConfDir = "$HOME/.storj/capt"
|
|
)
|
|
|
|
func main() {
|
|
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
|
|
process.ExecuteWithConfig(rootCmd,
|
|
filepath.Join(defaultConfDir, "config.yaml"))
|
|
}
|