Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Subcommands = []*cli.Command{ { Name: "dump-rollup-config", Usage: "Dumps network configs", Flags: []cli.Flag{ opflags.CLINetworkFlag(flags.EnvVarPrefix), }, Action: func(ctx *cli.Context) error { logCfg := oplog.ReadCLIConfig(ctx) logger := oplog.NewLogger(oplog.AppOut(ctx), logCfg) network := ctx.String(opflags.NetworkFlagName) if network == "" { return errors.New("must specify a network name") } rCfg, err := opnode.NewRollupConfig(logger, ctx) if err != nil { return err } out, err := json.MarshalIndent(rCfg, "", " ") if err != nil { return err } fmt.Println(string(out)) return nil }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.