snowjs / cli

CLI tool for dead-simple serverless Docker deployments on managed Kubernetes services. A self-hosted PaaS. ⚡️
https://github.com/snowjs/cli/tree/secrets
MIT License
409 stars 10 forks source link

display help if snow is run without commands & no docker file is found #10

Open sean-nicholas opened 5 years ago

sean-nicholas commented 5 years ago

If you run snow without commands the deploy function is executed. If there is no Dockerfile you end up with an error message. Would be nice to get some hint how to use snow instead. What about using commander or something similar?

petermikitsh commented 5 years ago

When I run the latest version of the secrets branch in a directory without a Dockerfile, this is the output I see:

$ snow
Error finding Dockerfile.
ENOENT: no such file or directory, open '/my/path/foobar/Dockerfile'

The command could certainly be clearer. A link to a new usage page, or the existing snow deploy documentation from the output would provide for a superior user experience.

sean-nicholas commented 5 years ago

Yes, that is the error message I am talking about. Simple link to the docs would be great.