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

Add ability to provide a custom filename. #46

Closed
wants to merge 0 commits into from

Conversation

leoromanovsky
Copy link

@leoromanovsky leoromanovsky commented Nov 12, 2024

Observation

All files are written as ci.yml.

Desired behavior

Add ability to have custom filename.

}

impl Generate {
pub fn new(workflow: Workflow) -> Self {
Self { workflow, name: "ci.yml".to_string() }
pub fn new(workflow: Workflow, name: Option<String>) -> Self {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm new to Rust - is this a desirable API or would it make more sense to require this parameter? Is the String the right datatype?

@leoromanovsky leoromanovsky marked this pull request as ready for review November 12, 2024 04:53
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.

1 participant