yadutaf / ovh-cli

Bare simple Command Line Interface (CLI) for OVH.
Other
31 stars 13 forks source link

non-lowercase API routes are unknown #4

Closed noone1337 closed 7 years ago

noone1337 commented 7 years ago

Hi,

non-lowercase API route are unkown:

$ ./ovh-eu msServices Unknown route /msServices

$ ./ovh-eu newAccount Unknown route /newAccount

$ ./ovh-eu ipLoadbalancing Unknown route /ipLoadbalancing

-- Robert

noone1337 commented 7 years ago

Hi yadutaf,

ok, found it in the code... You convert camel case (eg msServices) to snake case (eg ms-services). ./ovh-eu ms-services / new-account / ip-loadbancing works.

This should be documented in the README :-)

-- Robert

yadutaf commented 7 years ago

Thanks for the report. I'll see If I can add some aliases too. Pro-tip: try "./ovh-eu help" ;)

noone1337 commented 7 years ago

./ovh-eu --help shows me all available commands :-) Sorry for that.