Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoload config yaml file with same filename as entry script #600

Closed
Michiel-s opened this issue Dec 23, 2016 · 2 comments
Closed

Autoload config yaml file with same filename as entry script #600

Michiel-s opened this issue Dec 23, 2016 · 2 comments
Assignees
Labels
component:prototype generator enhancement Indicates new feature requests

Comments

@Michiel-s
Copy link
Member

This issue request to autoload a config yaml file (if exists in same folder) with the same filename as the entry script.

If the yaml file exists, the following 2 commands should have the same effect:
ampersand.exe script.adl
ampersand.exe script.adl --config=script.yaml

The check if the script.yaml file exists should only result in an error when it is explicitly mentioned on the command line.

@hanjoosten
Copy link
Member

This has been fixed. The implementation is now that there can only be a single configuration file. Iff a configuration file is requested by use of the --config switch, that file is taken. An error will follow if that file doesn't exist, or if it is not a proper yaml configuration file. If no --config swich is given, and there exists a .yaml file with the same name as the .adl file that is being compiled, that file is taken as the configuration file.

@Michiel-s
Copy link
Member Author

Many many thanks. This really saves me a lot of work and having different batch files for different processes.

Michiel-s added a commit that referenced this issue Jan 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:prototype generator enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

2 participants