From 8a0195ee99557725bdc39870cec87a933c6a3c80 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Tue, 17 Oct 2017 10:24:49 +0200 Subject: [PATCH] add token and addr to http flags --- command/flags/http.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/command/flags/http.go b/command/flags/http.go index bd703ae41f..1fa78e1671 100644 --- a/command/flags/http.go +++ b/command/flags/http.go @@ -65,6 +65,10 @@ func (f *HTTPFlags) ServerFlags() *flag.FlagSet { return fs } +func (f *HTTPFlags) Addr() string { + return f.address.String() +} + func (f *HTTPFlags) Datacenter() string { return f.datacenter.String() } @@ -76,6 +80,10 @@ func (f *HTTPFlags) Stale() bool { return *f.stale.v } +func (f *HTTPFlags) Token() string { + return f.token.String() +} + func (f *HTTPFlags) APIClient() (*api.Client, error) { c := api.DefaultConfig()