mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	cli: Improve error handling for plugin commands (#24250)
* Stop supporting vault plugin info and deregister without a type argument * Make a best-effort attempt to report whether a plugin was actually deregistered and give more descriptive errors * Fix error message for vault plugin reload
This commit is contained in:
		| @@ -34,6 +34,12 @@ func TestPluginInfoCommand_Run(t *testing.T) { | ||||
| 		out  string | ||||
| 		code int | ||||
| 	}{ | ||||
| 		{ | ||||
| 			"not_enough_args", | ||||
| 			[]string{"foo"}, | ||||
| 			"Not enough arguments", | ||||
| 			1, | ||||
| 		}, | ||||
| 		{ | ||||
| 			"too_many_args", | ||||
| 			[]string{"foo", "bar", "fizz"}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tom Proctor
					Tom Proctor