Chelsea Holland Komlo
7cdf28d303
use existing arg parsing functionality
2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
3d743a476a
small fixups
2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
d231b4aa0f
fix autocomplete to list all matches
2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
a05d7a2a20
default to job status if no arguments are provided
2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
ffe95a1a62
adds any resource autocomplete
...
defaults to listing jobs if no id is provided
2017-08-25 16:42:11 +00:00
Alex Dadgar
cf7a3fdf51
Autocomplete global flags
2017-08-23 23:29:29 +00:00
Chelsea Holland Komlo
8d4b963151
small fixes and cleanup
2017-08-23 23:04:47 +00:00
Chelsea Holland Komlo
ed2a544502
add global flags to autocomplete
2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
35f5c8f2dd
use PredictAnything when an flag accepts an argument
2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
2721e5890f
enable autocompletion of flags
2017-08-23 22:57:07 +00:00
Alex Dadgar
2ee5b6c39d
Change tty detection library
2017-08-23 14:35:50 -07:00
Alex Dadgar
3f0fc016e5
Detect STDOUT isn't a TTY and disable color
...
This PR disables color output when the STDOUT is not a TTY. This makes
running commands under `watch` or other commands nicer.
2017-08-23 14:35:26 -07:00
Alex Dadgar
00947f3ff4
move autocomplete functions to top for consistency of placement
2017-08-22 13:41:42 -07:00
Alex Dadgar
f79c14ac4c
flesh out the rest of the job subcommands
2017-08-22 13:39:06 -07:00
Alex Dadgar
b41be1f85b
update older autocomplete tests to inject state
2017-08-22 13:33:12 -07:00
Alex Dadgar
e3a71f6c53
nomad stop
2017-08-22 13:22:29 -07:00
Alex Dadgar
c172972b61
inspect
2017-08-22 13:19:29 -07:00
Alex Dadgar
554e17c3e9
node drain
2017-08-22 13:13:44 -07:00
Alex Dadgar
17e362e162
logs and fs
2017-08-22 13:11:32 -07:00
Alex Dadgar
02f26f3384
Autocomplete deployment commands
2017-08-22 13:05:24 -07:00
Alex Dadgar
422332c8bf
Merge pull request #3002 from jrasell/gh_2993
...
Add the Nomad agent version to the node-status CLI output.
2017-08-22 10:43:25 -07:00
Chelsea Komlo
49542712f9
Merge pull request #3068 from hashicorp/f-add-deployments-search-api
...
Add deployments to search api
2017-08-21 16:34:00 -04:00
Chelsea Holland Komlo
50c20b1801
add deployments to search api
2017-08-21 15:20:55 +00:00
Michael Schurter
7f6e1f3a9c
Initializing embedded structs is weird
2017-08-17 16:49:14 -07:00
Michael Schurter
0634eef12a
Test createCheckReg
2017-08-17 16:49:14 -07:00
Michael Schurter
bb8d5689d8
Add Header and Method support for HTTP checks
2017-08-17 16:44:21 -07:00
Michael Schurter
b4813747d0
Merge pull request #3043 from hashicorp/f-2441-shutdown-delay
...
Add optional shutdown delay to tasks
2017-08-17 14:37:48 -07:00
Slobodan Mišković
7b5e5d695b
Spelling fix: stana -> stanza
2017-08-16 23:32:41 -07:00
Michael Schurter
d529b422b2
Add optional shutdown delay to tasks
...
Fixes #2441
Defaults to 0 (no delay) for backward compat and because this feature
should be opt-in.
2017-08-16 17:59:46 -07:00
Alex Dadgar
d6187cd3e8
Fix tests
2017-08-16 16:26:52 -07:00
Alex Dadgar
1a86aecf55
Add version package
...
This PR adds a version package and consolidates version strings into a
Version struct.
2017-08-16 15:44:21 -07:00
James Rasell
0d120228ea
Updates based on feedback provided by dadgar.
2017-08-16 22:19:31 +01:00
Chelsea Komlo
755cc33f13
Merge pull request #3037 from hashicorp/b-limit-tab-autocomplete
...
Tab completion should only happen once
2017-08-16 14:25:14 -04:00
Alex Dadgar
828b9bfae4
fix http test
2017-08-16 11:01:12 -07:00
Chelsea Holland Komlo
c083af1e7c
tab completion should only happen once
2017-08-16 17:04:47 +00:00
Chelsea Holland Komlo
68679ee265
tests for autocomplete functions
2017-08-15 20:21:50 +00:00
Chelsea Holland Komlo
499de71dfd
adding autocomplete for nodes, evals, and jobs
2017-08-14 20:44:28 +00:00
Chelsea Komlo
b9f189495a
Merge pull request #2995 from hashicorp/f-allocation-autocomplete
...
Allocation autocomplete, client api
2017-08-14 15:26:39 -04:00
Chelsea Holland Komlo
e658d4daaa
fixups from code review
2017-08-14 17:56:03 +00:00
Alex Dadgar
43dff0a11d
Fix integration test
2017-08-14 10:52:49 -07:00
Chelsea Holland Komlo
69c2b7e308
context constants should be in both api and structs pkg
2017-08-14 17:38:10 +00:00
Chelsea Holland Komlo
9bc48a01a6
using contexts constants in replace of string contexts
...
fix up endpoints
2017-08-14 17:38:10 +00:00
Chelsea Holland Komlo
76827c98f7
use constants for contexts
2017-08-14 17:38:10 +00:00
Chelsea Holland Komlo
465c4d7082
change endpoint to /v1/search
2017-08-14 17:38:10 +00:00
Chelsea Holland Komlo
5ee58a391b
rename to cluster search
...
comment updates
2017-08-14 17:36:14 +00:00
Chelsea Holland Komlo
9402d330e8
autocomplete for allocation ids
2017-08-14 17:35:35 +00:00
James Nugent
ae85c548ac
build: Apply goimports formatting to various files
...
The following files were not formatted as the output of goimports(1)
would create, causing the goimports linter to fail:
command/agent/resources_endpoint.go
nomad/resources_endpoint.go
nomad/resources_endpoint_test.go
2017-08-14 11:51:47 +08:00
Alex Dadgar
6e20acb503
Merge pull request #2984 from hashicorp/b-tags
...
Fix alloc health with checks using interpolation
2017-08-10 13:07:25 -07:00
Alex Dadgar
c8f74ac43b
Address comments
2017-08-10 13:07:08 -07:00
Alex Dadgar
6b238edc22
Merge pull request #3001 from hashicorp/f-template-events
...
Template emits events explaining why it is blocked
2017-08-10 13:00:58 -07:00