Vishal Nayak
|
b20b7ef61d
|
command/ssh: create and reuse the api client (#3909)
* pass around the api client
* reuse the client object in the base command
|
2018-02-06 13:06:17 -05:00 |
Seth Vargo
|
e1b63d4803
|
Move more formatting into base_helpers
|
2017-10-24 09:30:48 -04:00 |
Seth Vargo
|
971307351b
|
Cleanup base flags a bit
|
2017-10-24 09:28:05 -04:00 |
Seth Vargo
|
197339e78c
|
Use a TokenHelper method
It's weird to have two different helper funcs that can return different errors
|
2017-10-24 09:28:05 -04:00 |
Seth Vargo
|
5d31c4cb08
|
Allow hiding flags
|
2017-10-24 09:28:05 -04:00 |
Seth Vargo
|
5093b8dff8
|
More arbitrary function for wrapping at a length
|
2017-10-24 09:26:44 -04:00 |
Seth Vargo
|
9347c110f2
|
Delegate usage to the UI
|
2017-10-24 09:26:44 -04:00 |
Seth Vargo
|
6c73d28967
|
Make predict it's own struct
The previous architecture would create an API client many times, slowing down the CLI exponentially for each new command added.
|
2017-10-24 09:26:44 -04:00 |
Seth Vargo
|
cc0140be80
|
Add start of base command, flags, prediction
|
2017-10-24 09:26:44 -04:00 |