ebsarr / packet

packet, a CLI tool to manage packet.net services
Other
40 stars 14 forks source link

Support for device userdata? #10

Closed benjamink closed 8 years ago

benjamink commented 8 years ago

Will userdata (cloud-init or scripts) be supported at some point?

ebsarr commented 8 years ago

Yes. What command line syntax would be the most suitable for you?

benjamink commented 8 years ago

I was thinking passing a file containing the script. I wonder if being able to submit the script in-line as a string would be helpful too, though?

-u, --userdata <filename>
ebsarr commented 8 years ago

@benjamink: Submitting the script in-line might require ugly escape sequences. This is the reason why I dropped the support for userdata in the first place. Indeed, passing a file containing the script is a clean way to do it. Thanks for the advice. Will work on it in the following days.

ebsarr commented 8 years ago

https://github.com/ebsarr/packet/commit/ff2f8446ce90906cfd40a4332fcff7280599cde4