Skip to content

Custom target filename #150

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

Merged
merged 36 commits into from
Dec 19, 2018
Merged

Custom target filename #150

merged 36 commits into from
Dec 19, 2018

Conversation

jupe
Copy link
Contributor

@jupe jupe commented Dec 13, 2018

Status

READY

Migrations

NO

Description

introduce optional --target_filename <filename> -parameter

NOTE: implemented top of #145

Todos

  • Tests
  • Documentation

@jupe jupe requested a review from juhhov December 13, 2018 08:51
move new optional parameter end of public API arguments with default value to avoid breaking changes.
Update existing tests
@@ -85,7 +85,7 @@ def can_flash(target):
return True

# pylint: disable=too-many-return-statements, duplicate-except
def flash(self, source, target, method, no_reset):
def flash(self, source, target, method, no_reset, target_filename):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

what do you think, is this "public API" ? I would say no... Note that this change is breaking change if we think about this is public API..

Copy link
Contributor

Choose a reason for hiding this comment

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

It should not break if default value is given for the target_filename. When the value is default it should work as before this change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Anyway, this is not public API IMO either.

@RomanSaveljev
Copy link
Contributor

Why problem(s) does this PR solve?

@juhhov
Copy link
Contributor

juhhov commented Dec 19, 2018

@jupe could this be merged?

@juhhov
Copy link
Contributor

juhhov commented Dec 19, 2018

Add test for cli usage as well. Missing also tests for invalid target filename values.

@juhhov juhhov added this to the v0.9.3 milestone Dec 19, 2018
@juhhov juhhov merged commit ef02f6e into master Dec 19, 2018
@juhhov juhhov deleted the custom_target_filename branch December 19, 2018 12:41
@juhhov juhhov modified the milestones: v0.9.3, v0.10.0 Dec 20, 2018
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