Commit graph

6 commits

Author SHA1 Message Date
Frank Schroeder 9f8f258d4d Remove duplicate constants
This patch removes duplicate internal copies of constants in the structs
package which are also defined in the api package. The api.KVOp type
with all its values for the TXN endpoint and the api.HealthXXX constants
are now used throughout the codebase.

This resulted in some circular dependencies in the testutil package
which have been resolved by copying code and constants and moving the
WaitForLeader function into a separate testrpc package.
2017-04-20 09:54:49 -07:00
Kyle Havlovitz 27ee6f974d
Update website docs for validate command 2017-02-10 19:38:38 -05:00
Sean Chittenden 893f91b0d5 Always seed math/rand on consul startup
Required for jitter calcs.  This could be done in consul/agent, but this makes it clear it is done only once process-wide.
2016-01-29 17:00:08 -08:00
Ryan Uber 9aba3c42c5 main: do not process -v or --version after a '--' 2015-03-11 16:33:55 -07:00
Armon Dadgar 10214683f0 main: Fixing app name 2014-04-11 16:23:05 -07:00
Armon Dadgar 5aa94a7989 Adding basic CLI infrastructure 2013-12-19 11:22:08 -08:00