Commit Graph

6 Commits

Author SHA1 Message Date
Frank Schroeder eddb1af603 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 eee5eb3fb8
Update website docs for validate command 2017-02-10 19:38:38 -05:00
Sean Chittenden 4382c1f7aa 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 45f599791e main: do not process -v or --version after a '--' 2015-03-11 16:33:55 -07:00
Armon Dadgar 04583cad86 main: Fixing app name 2014-04-11 16:23:05 -07:00
Armon Dadgar 1c5a8d01b1 Adding basic CLI infrastructure 2013-12-19 11:22:08 -08:00