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

Feature/standalone config generation #8

Merged

Conversation

lrascao
Copy link
Contributor

@lrascao lrascao commented Oct 8, 2020

This set of commits will bring cuttlefish to a point where i'm able to invoke:

cuttlefish --etc_dir etc --dest_dir output_dir --dest_file generated.config --schema_dir path_to/schemas --conf_file etc/a_conf_file.conf --allow_extra --silent

This invocation will look in path_to/schemas, find all .schema files and generate a single .config file to output_dir/generate.config based on values expressed in etc/a_conf_file.conf.

In my particular use case i'm not interested in generating vm.args or a full fledged sys.config file. I only want to take advantage of cuttlefish's schema/conf functionality to generate a single tuple-based .config file.

@lrascao
Copy link
Contributor Author

lrascao commented Oct 8, 2020

i guess coveralls is asking me to write a test for the new silent cli option

@lrascao lrascao force-pushed the feature/standalone_config_generation branch 2 times, most recently from 2a09605 to d4df9d2 Compare October 10, 2020 22:52
@michaelklishin
Copy link
Collaborator

@lrascao @lukebakken I like this idea

@lrascao
Copy link
Contributor Author

lrascao commented Oct 21, 2020

ping, is this missing something or just not enough bandwidth atm?

@lukebakken
Copy link
Collaborator

@lrascao please remember that this free, open source software is maintained by volunteers.

@lrascao
Copy link
Contributor Author

lrascao commented Oct 21, 2020

i understand that completely as i maintain a few of my own, wasn't my intention to put anyone under pressure, just wondering if this had slipped under the radar, now i know it's not

lrascao and others added 5 commits October 22, 2020 14:04
We're not interested in generating `erlexec` cli args, the job was already done which is generating the config file.
Depending on wether the dest_file parameter is a complete
filename with extension, skip or append the datetime suffix
at the end of it.
@lrascao lrascao force-pushed the feature/standalone_config_generation branch from 99be8b8 to d348ee4 Compare October 22, 2020 13:05
@lrascao
Copy link
Contributor Author

lrascao commented Oct 22, 2020

i've rebased onto master for a cleaner history

@lukebakken lukebakken merged commit 1a009a4 into Kyorai:master Oct 22, 2020
@lukebakken
Copy link
Collaborator

Thank you!

@lrascao lrascao deleted the feature/standalone_config_generation branch October 23, 2020 08:03
@lrascao
Copy link
Contributor Author

lrascao commented Oct 23, 2020

thanks! i've got another one in the pipe that is in the same vein, but for vm.args, maybe hold off a bit on 2.5.0 until i put that forward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants