go-ethereum: github.com/ethereum/go-ethereum/internal/flags Index | Files

package flags

import "github.com/ethereum/go-ethereum/internal/flags"


Package Files



var (
    CommandHelpTemplate = "" /* 475 byte string literal not displayed */

    OriginCommandHelpTemplate = "" /* 342 byte string literal not displayed */

    AppHelpTemplate = "" /* 689 byte string literal not displayed */

    ClefAppHelpTemplate = "" /* 542 byte string literal not displayed */


func FlagCategory Uses

func FlagCategory(flag cli.Flag, flagGroups []FlagGroup) string

func NewApp Uses

func NewApp(gitCommit, gitDate, usage string) *cli.App

NewApp creates an app with sane defaults.

type ByCategory Uses

type ByCategory []FlagGroup

byCategory sorts an array of FlagGroup by Name in the order defined in AppHelpFlagGroups.

func (ByCategory) Len Uses

func (a ByCategory) Len() int

func (ByCategory) Less Uses

func (a ByCategory) Less(i, j int) bool

func (ByCategory) Swap Uses

func (a ByCategory) Swap(i, j int)

type FlagGroup Uses

type FlagGroup struct {
    Name  string
    Flags []cli.Flag

FlagGroup is a collection of flags belonging to a single topic.

type HelpData Uses

type HelpData struct {
    App        interface{}
    FlagGroups []FlagGroup

HelpData is a one shot struct to pass to the usage template

Package flags imports 4 packages (graph) and is imported by 11 packages. Updated 2021-01-28. Refresh now. Tools for package owners.