Closed pelikhan closed 2 weeks ago
The changes in the GIT_DIFF
include:
cli.ts:
nodeHost
is added before logging the stack trace in non-quiet mode. This ensures that the stack trace is logged only if nodeHost
is available, which might be related to a contextual requirement in error handling.nodehost.ts:
dotEnvPath
) now considers process.env.GENAISCRIPT_ENV_FILE
as a user-provided path before falling back to a default..env
file is added, throwing an error if the file is not found at the specified path. This change improves robustness by avoiding potential runtime errors due to a missing configuration file.These changes improve error handling and configuration management within the CLI package.
LGTM ๐
generated by pr-review
Introduce the ability to specify a custom
.env
file location through a CLI argument or an environment variable. Update documentation to reflect these changes.Fix for https://github.com/microsoft/genaiscript/issues/837
- ๐ **Custom .env File Support**: Introduced the ability to specify custom `.env` file locations in the documentation. Users can now define a custom path using the `--env