beehive: github.com/muesli/beehive/app Index | Files

package app

import "github.com/muesli/beehive/app"

Package app is Beehive's application container. Handles command-line arguments parsing.

Index

Package Files

app.go

func AddFlags Uses

func AddFlags(flags []CliFlag)

AddFlags adds CliFlags to appflags

func Run Uses

func Run()

Run sets up all the cli-param mappings

type CliFlag Uses

type CliFlag struct {
    V     interface{}
    Name  string
    Value interface{}
    Desc  string
}

A CliFlag can be added by Beehive modules to map a command-line parameter to a local variable

Package app imports 1 packages (graph) and is imported by 24 packages. Updated 2017-02-04. Refresh now. Tools for package owners.