bump-sh / cli

Bump.sh CLI - Deploy your OpenAPI & AsyncAPI documentations from your CI
https://bump.sh
MIT License
39 stars 2 forks source link

Improve error message when target directory doesn't exist #565

Open paulRbr opened 5 months ago

paulRbr commented 5 months ago

Steps to reproduce

> bump deploy inexistent/dir/ --auto-create --hub "my-hub" --token "my-token"
 ›   Error: Missing required flag:
 ›    -d, --doc DOC  Documentation public id or slug. Can be provided via BUMP_ID environment variable
 ›   See more help with --help

Expected behavior

A better error message, stating that the target directory inexistent/dir/ doesn't exist.