-
-
Notifications
You must be signed in to change notification settings - Fork 63
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] extra arguments for 3 commands oca-gen-addons-table, oca-gen-addon-readme, oca-gen-addon-icon #103
[ADD] extra arguments for 3 commands oca-gen-addons-table, oca-gen-addon-readme, oca-gen-addon-icon #103
Conversation
src/oca_github_bot/process.py
Outdated
def check_call(cmd, cwd, log_error=True): | ||
def check_call(cmd, cwd, log_error=True, extra_cmd=False): | ||
if extra_cmd: | ||
cmd += extra_cmd.split(",") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put this split in configuration parsing. So here assume extra_cmd is a list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call this extra_cmd_args
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
splitting on whitespace is probably more natural (and we can consider arguments containing spaces are not supported at the moment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put this split in configuration parsing. So here assume extra_cmd is a list.
Indeed.
call this extra_cmd_args?
Indeed also.
splitting on whitespace is probably more natural
It was to be consistent with the other args, but you're right. Space are not valid in an arg, and comma could be.
Hi @sbidoul
|
Hi @legalsylvain , Thanks for the kind feedback. Your suggestions make sense. Can you open separate issues to track them? Regarding squashing there is #43 already. |
715bd6e
to
f819fb6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Could you add a file named 103.feature
with a changelog entry that mentions the 3 new options? Can you also update [update] you did it already, nice!environment.sample
so people installing following the documentation (which says to copy that file) will discover the new options.
e689a0a
to
03f7676
Compare
@sbidoul : Done. (my first towncrier fragment!) |
newsfragments/103.feature
Outdated
@@ -0,0 +1,10 @@ | |||
**Features** | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Features section be added by towncrier
, so it must not be here. Also, towncrier will transform each newsfragment into a bullet list item, and append a link to the related PR/issue. So this should really be a simple paragraph, and if there is more to say, it should go into the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just needs an update to the news fragment.
…don-readme, oca-gen-addon-icon
03f7676
to
ea78960
Compare
Hi @sbidoul. Thanks for your advices. Fragment updated. Better ? |
Perfect, thanks! |
WIP.
Add configuration options in environment file