From f72d40510730a83b18d501db0b6e2ec289d5529d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=8C=AF=E5=A8=81?= Date: Sat, 30 Apr 2016 10:42:07 +0800 Subject: [PATCH] Change Extras to Metadata --- app.go | 2 +- command.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.go b/app.go index 503f838..93bbb04 100644 --- a/app.go +++ b/app.go @@ -63,7 +63,7 @@ type App struct { // Writer writer to write output to Writer io.Writer // Other custom info - Extras map[string]interface{} + Metadata map[string]interface{} } // Tries to find out when this binary was compiled. diff --git a/command.go b/command.go index 0ccffa2..9e713df 100644 --- a/command.go +++ b/command.go @@ -197,7 +197,7 @@ func (c Command) HasName(name string) bool { func (c Command) startApp(ctx *Context) error { app := NewApp() - app.Extras = ctx.App.Extras + app.Metadata = ctx.App.Metadata // set the name and usage app.Name = fmt.Sprintf("%s %s", ctx.App.Name, c.Name) if c.HelpName == "" {