vultr-cli icon indicating copy to clipboard operation
vultr-cli copied to clipboard

[Feature] - Allow update of bare metal user data without reading from a file

Open optik-aper opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. It would be nice to be able to make the --userdata flag on the bare-metal user-data set --userdata=... accept a string directly from the command line and not have to read in a file:

vultr-cli bare-metal user-data set 08dad366-0d84-469a-b2a4-fc319e4e4dbc --userdata="VEVTVCBVU0VSIERBVEEzMzMzMwo="                                                                                             
error reading user-data : open VEVTVCBVU0VSIERBVEEzMzMzMwo=: no such file or directory
exit status 1

Describe the solution you'd like A separate flag for filename to parse and make --userdata read in a string instead of a file. Or have it check for a file then try parsing it as a string (though that option seems worse).

Describe alternatives you've considered It's just an update to the bare metal route--there is no special route in play here. So, this is kind of the only way to make this happen.

optik-aper avatar Sep 26 '23 16:09 optik-aper