nerves-hub / nerves_hub_cli

NervesHub Mix command line interface
Apache License 2.0
36 stars 17 forks source link

Product name which includes space cause "Invalid Product" Error #141

Open pojiro opened 4 years ago

pojiro commented 4 years ago

A Product name which includes space like below is created successfully by "mix nerves_hub.product create".

def project do
  [
    app: :hello_nerves,
    name: "Hello Nerves"
    ...
  ]

But ' mix nerves_hub.product delete "Hello Nerves" ' causes "Invalid product: Hello+Nerves" Error.

I investigated this error little, then found below command finished successfully.

mix nerves_hub.product delete "Hello%20Nerves"

So this Error may be caused by url encoding of API path.

fhunleth commented 4 years ago

Hey @pojiro - Thanks for letting us know about the issue! We're saving it for when we make a bigger pass at NervesHub features. If you need it fixed sooner, feel free to send a PR.