Current behavior:
When running func run outside of a function directory, the error message is technical and unhelpful for beginners:
Error: '/path/to/directory' does not contain an initialized function
Proposed improvement:
Make the error message more user-friendly and educational:
no function found in current directory.
You need to be inside a function directory to run it.
Try this:
func create --language go myfunction Create a new function
cd myfunction Go into the function directory
func run Run the function locally
Or if you have an existing function:
cd path/to/your/function Go to your function directory
func run Run the function locally