Skip to content

Commit

Permalink
make repo flag global (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense authored Jul 6, 2022
1 parent 81d422b commit d2e7441
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion cmd/boost/deal_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
const DealProtocolv120 = "/fil/storage/mk/1.2.0"

var dealFlags = []cli.Flag{
cmd.FlagRepo,
&cli.StringFlag{
Name: "provider",
Usage: "storage provider on-chain address",
Expand Down
1 change: 0 additions & 1 deletion cmd/boost/deal_status_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ var dealStatusCmd = &cli.Command{
Name: "deal-status",
Usage: "",
Flags: []cli.Flag{
cmd.FlagRepo,
&cli.StringFlag{
Name: "provider",
Usage: "storage provider on-chain address",
Expand Down
1 change: 0 additions & 1 deletion cmd/boost/init_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
var initCmd = &cli.Command{
Name: "init",
Usage: "Initialise Boost client repo",
Flags: []cli.Flag{cmd.FlagRepo},
Before: before,
Action: func(cctx *cli.Context) error {
ctx := lcli.ReqContext(cctx)
Expand Down
1 change: 1 addition & 0 deletions cmd/boost/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func main() {
EnableBashCompletion: true,
Version: build.UserVersion(),
Flags: []cli.Flag{
cmd.FlagRepo,
cliutil.FlagVeryVerbose,
cmd.FlagJson,
},
Expand Down
1 change: 0 additions & 1 deletion cmd/boost/provider_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const (
var providerCmd = &cli.Command{
Name: "provider",
Usage: "Info about Storage Providers",
Flags: []cli.Flag{cmd.FlagRepo},
Subcommands: []*cli.Command{
libp2pInfoCmd,
storageAskCmd,
Expand Down
1 change: 0 additions & 1 deletion cmd/boost/wallet_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
var walletCmd = &cli.Command{
Name: "wallet",
Usage: "Manage wallets with Boost",
Flags: []cli.Flag{cmd.FlagRepo},
Subcommands: []*cli.Command{
walletNew,
walletList,
Expand Down

0 comments on commit d2e7441

Please sign in to comment.