Skip to content

Commit

Permalink
fix: remove signer flags from get
Browse files Browse the repository at this point in the history
  • Loading branch information
gpabst committed Dec 12, 2024
1 parent 6046a3e commit 0d2ed17
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion pkg/operator/get_operator_split.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package operator

import (
"sort"

"github.com/Layr-Labs/eigenlayer-cli/pkg/internal/common"
"github.com/Layr-Labs/eigenlayer-cli/pkg/internal/common/flags"
"github.com/Layr-Labs/eigenlayer-cli/pkg/operator/split"
Expand All @@ -23,12 +25,26 @@ func GetOperatorSplitCmd(p utils.Prompter) *cli.Command {
return GetOperatorSplit(cCtx)
},
After: telemetry.AfterRunAction(),
Flags: getOperatorSplitFlags(),
Flags: getGetOperatorSplitFlags(),
}

return operatorSplitCmd
}

func getGetOperatorSplitFlags() []cli.Flag {
baseFlags := []cli.Flag{
&flags.NetworkFlag,
&flags.ETHRpcUrlFlag,
&flags.OperatorAddressFlag,
&split.OperatorSplitFlag,
&rewards.RewardsCoordinatorAddressFlag,
&split.AVSAddressFlag,
}

sort.Sort(cli.FlagsByName(baseFlags))
return baseFlags
}

func GetOperatorSplit(cCtx *cli.Context) error {
ctx := cCtx.Context
logger := common.GetLogger(cCtx)
Expand Down
4 changes: 2 additions & 2 deletions pkg/operator/set_operator_split.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func SetOperatorSplitCmd(p utils.Prompter) *cli.Command {
return SetOperatorSplit(cCtx, p)
},
After: telemetry.AfterRunAction(),
Flags: getOperatorSplitFlags(),
Flags: getSetOperatorSplitFlags(),
}

return operatorSplitCmd
Expand Down Expand Up @@ -80,7 +80,7 @@ func SetOperatorSplit(cCtx *cli.Context, p utils.Prompter) error {
return nil
}

func getOperatorSplitFlags() []cli.Flag {
func getSetOperatorSplitFlags() []cli.Flag {
baseFlags := []cli.Flag{
&flags.NetworkFlag,
&flags.ETHRpcUrlFlag,
Expand Down

0 comments on commit 0d2ed17

Please sign in to comment.