open-nomad/command
Charlie Voiselle 8ef6964817 Handle exact namespace match properly when also matched as prefix
This fixes an issue with the nomad namespace inspect and nomad namespace status commands failing to run for namespaces whose names are the start of another namespace's name: for example, foo and foobar. If the argument matches the first possibility returned by prefix exactly, that namespace will be targetted. If no exact match occurs, the behavior is unchanged.
2017-11-29 19:40:08 -05:00
..
agent Add CORS headers to client fs endpoints 2017-11-21 11:22:42 -08:00
test-resources Refactor spawn-daemon so it can be used by all OSes and make it write exit code to a file 2015-10-28 16:23:33 -07:00
acl.go embed acl subcommands 2017-09-15 20:11:37 +00:00
acl_bootstrap.go sync 2017-10-13 14:36:02 -07:00
acl_bootstrap_test.go add failure test cases 2017-10-25 14:08:15 -04:00
acl_policy.go command: Adding intermediate command for help text 2017-09-14 21:31:05 -07:00
acl_policy_apply.go sync 2017-10-13 14:36:02 -07:00
acl_policy_apply_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
acl_policy_delete.go sync 2017-10-13 14:36:02 -07:00
acl_policy_delete_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
acl_policy_info.go sync 2017-10-13 14:36:02 -07:00
acl_policy_info_test.go policy list and token self commands 2017-10-13 16:31:46 -07:00
acl_policy_list.go List does json/template 2017-10-13 16:37:33 -07:00
acl_policy_list_test.go List does json/template 2017-10-13 16:37:33 -07:00
acl_token.go command: Adding acl token create 2017-09-14 21:55:25 -07:00
acl_token_create.go sync 2017-10-13 14:36:02 -07:00
acl_token_create_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
acl_token_delete.go sync 2017-10-13 14:36:02 -07:00
acl_token_delete_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
acl_token_info.go sync 2017-10-13 14:36:02 -07:00
acl_token_info_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
acl_token_self.go Update acl_token_self.go 2017-10-13 16:38:13 -07:00
acl_token_self_test.go policy list and token self commands 2017-10-13 16:31:46 -07:00
acl_token_update.go sync 2017-10-13 14:36:02 -07:00
acl_token_update_test.go Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
agent_info.go Return AgentSelf struct from Agent.Self() instead of map 2017-03-08 15:59:10 +01:00
agent_info_test.go Parallel 2017-07-20 21:24:21 -07:00
alloc_status.go Fixes bug with display message logic due to deprecating GenericSource. Also added more test cases to cover a bunch more edge cases 2017-11-13 11:14:57 -06:00
alloc_status_test.go New pretty printer that imitates the short form from time.Duration.String() with approximated values for days and beyond. Used in cli output for allocation create/modify times 2017-11-01 15:16:38 -05:00
check.go add global flags to autocomplete 2017-08-23 22:58:44 +00:00
check_test.go Parallel 2017-07-20 21:24:21 -07:00
client_config.go small fixes and cleanup 2017-08-23 23:04:47 +00:00
client_config_test.go Parallel 2017-07-20 21:24:21 -07:00
data_format.go Formatting abilities 2017-07-07 12:07:07 -07:00
data_format_test.go Parallel 2017-07-20 21:24:21 -07:00
deployment.go deployment list 2017-07-07 12:07:07 -07:00
deployment_fail.go sync 2017-10-13 14:36:02 -07:00
deployment_fail_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
deployment_list.go sync 2017-10-13 14:36:02 -07:00
deployment_list_test.go Parallel 2017-07-20 21:24:21 -07:00
deployment_pause.go sync 2017-10-13 14:36:02 -07:00
deployment_pause_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
deployment_promote.go sync 2017-10-13 14:36:02 -07:00
deployment_promote_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
deployment_resume.go sync 2017-10-13 14:36:02 -07:00
deployment_resume_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
deployment_status.go sync 2017-10-13 14:36:02 -07:00
deployment_status_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
eval_status.go Enable more linters 2017-09-26 15:26:33 -07:00
eval_status_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
executor_plugin.go Added executorconfig 2017-01-12 15:47:58 -08:00
fs.go handle errors when streaming logs 2017-09-19 10:37:49 -05:00
fs_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
helpers.go Fix flaky test TestPrettyTimeDiff 2017-11-16 09:48:14 -06:00
helpers_test.go Fix flaky test TestPrettyTimeDiff 2017-11-16 09:48:14 -06:00
init.go Spelling fix: stana -> stanza 2017-08-16 23:32:41 -07:00
init_test.go Parallel 2017-07-20 21:24:21 -07:00
inspect.go Check for errors initializing client for autocomplete 2017-08-29 14:29:32 -07:00
inspect_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
integration_test.go update test to use assert 2017-09-05 16:38:15 -07:00
job.go start of the cli command 2016-12-04 21:22:13 -08:00
job_deployments.go sync 2017-10-13 14:36:02 -07:00
job_deployments_test.go Add testing around nomad job deployments command 2017-09-06 17:16:46 -07:00
job_dispatch.go sync 2017-10-13 14:36:02 -07:00
job_dispatch_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
job_history.go sync 2017-10-13 14:36:02 -07:00
job_history_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
job_promote.go sync 2017-10-13 14:36:02 -07:00
job_promote_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
job_revert.go sync 2017-10-13 14:36:02 -07:00
job_revert_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
job_status.go New pretty printer that imitates the short form from time.Duration.String() with approximated values for days and beyond. Used in cli output for allocation create/modify times 2017-11-01 15:16:38 -05:00
job_status_test.go New pretty printer that imitates the short form from time.Duration.String() with approximated values for days and beyond. Used in cli output for allocation create/modify times 2017-11-01 15:16:38 -05:00
keygen.go sync 2017-10-13 14:36:02 -07:00
keygen_test.go Parallel 2017-07-20 21:24:21 -07:00
keyring.go Fix panic on every run of the keyring command. 2017-11-06 10:15:42 +00:00
logs.go handle errors when streaming logs 2017-09-19 10:37:49 -05:00
logs_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
meta.go Enable more linters 2017-09-26 15:26:33 -07:00
meta_test.go add acl token as meta flag 2017-09-15 23:33:43 +00:00
monitor.go sync 2017-10-13 14:36:02 -07:00
monitor_test.go Enable more linters 2017-09-26 15:26:33 -07:00
namespace.go Sync namespace changes 2017-09-07 17:04:21 -07:00
namespace_apply.go sync 2017-10-13 14:36:02 -07:00
namespace_apply_test.go fix test 2017-09-19 10:28:23 -05:00
namespace_delete.go sync 2017-10-13 14:36:02 -07:00
namespace_delete_test.go Sync namespace changes 2017-09-07 17:04:21 -07:00
namespace_inspect.go add missing namespace commands 2017-10-13 16:32:47 -07:00
namespace_inspect_test.go Handle exact namespace match properly when also matched as prefix 2017-11-29 19:40:08 -05:00
namespace_list.go guide 2017-10-16 11:23:18 -07:00
namespace_list_test.go List does json/template 2017-10-13 16:37:33 -07:00
namespace_status.go Handle exact namespace match properly when also matched as prefix 2017-11-29 19:40:08 -05:00
namespace_status_test.go Handle exact namespace match properly when also matched as prefix 2017-11-29 19:40:08 -05:00
node_drain.go Enable more linters 2017-09-26 15:26:33 -07:00
node_drain_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
node_status.go Enable more linters 2017-09-26 15:26:33 -07:00
node_status_test.go add prefix tests 2017-08-29 10:09:30 -07:00
operator.go Operator command/endpoint/documentation 2017-02-09 18:04:46 -08:00
operator_raft.go sync 2017-10-13 14:36:02 -07:00
operator_raft_list.go sync 2017-10-13 14:36:02 -07:00
operator_raft_list_test.go Parallel 2017-07-20 21:24:21 -07:00
operator_raft_remove.go sync 2017-10-13 14:36:02 -07:00
operator_raft_remove_test.go Parallel 2017-07-20 21:24:21 -07:00
operator_raft_test.go Parallel 2017-07-20 21:24:21 -07:00
operator_test.go Parallel 2017-07-20 21:24:21 -07:00
plan.go Enable more linters 2017-09-26 15:26:33 -07:00
plan_test.go Parallel 2017-07-20 21:24:21 -07:00
quota.go sync 2017-10-13 14:36:02 -07:00
quota_apply.go sync 2017-10-13 14:36:02 -07:00
quota_apply_test.go sync 2017-10-13 14:36:02 -07:00
quota_delete.go quota command docs 2017-10-13 16:16:36 -07:00
quota_delete_test.go sync 2017-10-13 14:36:02 -07:00
quota_init.go sync 2017-10-13 14:36:02 -07:00
quota_init_test.go sync 2017-10-13 14:36:02 -07:00
quota_inspect.go sync 2017-10-13 14:36:02 -07:00
quota_inspect_test.go sync 2017-10-13 14:36:02 -07:00
quota_list.go guide 2017-10-16 11:23:18 -07:00
quota_list_test.go sync 2017-10-13 14:36:02 -07:00
quota_status.go quota command docs 2017-10-13 16:16:36 -07:00
quota_status_test.go sync 2017-10-13 14:36:02 -07:00
run.go Enable more linters 2017-09-26 15:26:33 -07:00
run_test.go fix two flaky tests 2017-10-23 18:15:52 -07:00
sentinel.go sync 2017-09-19 10:08:23 -05:00
sentinel_apply.go sync 2017-10-13 14:36:02 -07:00
sentinel_apply_test.go sync 2017-09-19 10:08:23 -05:00
sentinel_delete.go sync 2017-10-13 14:36:02 -07:00
sentinel_delete_test.go sync 2017-09-19 10:08:23 -05:00
sentinel_list.go sync 2017-10-13 14:36:02 -07:00
sentinel_list_test.go sync 2017-09-19 10:08:23 -05:00
sentinel_read.go sync 2017-10-13 14:36:02 -07:00
sentinel_read_test.go sync 2017-09-19 10:08:23 -05:00
server_force_leave.go command: rename some agent commands to use a server- prefix 2015-09-22 11:01:41 -07:00
server_force_leave_test.go Parallel 2017-07-20 21:24:21 -07:00
server_join.go command: rename some agent commands to use a server- prefix 2015-09-22 11:01:41 -07:00
server_join_test.go Parallel 2017-07-20 21:24:21 -07:00
server_members.go add global flags to autocomplete 2017-08-23 22:58:44 +00:00
server_members_test.go Parallel 2017-07-20 21:24:21 -07:00
status.go sync 2017-10-13 14:36:02 -07:00
status_test.go Status honors exact match and displays matches when more than one is available 2017-08-29 08:42:09 -07:00
stop.go Check for errors initializing client for autocomplete 2017-08-29 14:29:32 -07:00
stop_test.go Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
ui.go UI command documentation 2017-10-11 18:24:58 -07:00
util_test.go Standardize retrieving a free port into a helper package 2017-10-23 16:48:20 -07:00
validate.go Autocomplete files 2017-07-18 13:18:17 -07:00
validate_test.go Parallel 2017-07-20 21:24:21 -07:00
version.go Add version package 2017-08-16 15:44:21 -07:00
version_test.go Parallel 2017-07-20 21:24:21 -07:00