Skip to content

testscript: add Params.RequireExplicitExec#164

Merged
mvdan merged 1 commit into
rogpeppe:masterfrom
mvdan:require-explicit-exec
Jul 6, 2022
Merged

testscript: add Params.RequireExplicitExec#164
mvdan merged 1 commit into
rogpeppe:masterfrom
mvdan:require-explicit-exec

Conversation

@mvdan

@mvdan mvdan commented Jun 28, 2022

Copy link
Copy Markdown
Collaborator

(see commit message)

Fixes #163.

@mvdan mvdan requested review from myitcv and rogpeppe June 28, 2022 20:19
@mvdan mvdan force-pushed the require-explicit-exec branch from c0bda00 to fdc03d5 Compare June 28, 2022 20:24

@rogpeppe rogpeppe left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for doing this! LGTM in general modulo a few comments and suggestions.

Comment thread testscript/cmd.go Outdated
Comment thread testscript/exe.go Outdated
We also document how top-level commands fed to RunMain work with and
without "exec" the same way, and how RequireExplicitExec can drop
backwards compatibility for greater consistency.

Fixes rogpeppe#163.
@mvdan mvdan force-pushed the require-explicit-exec branch from fdc03d5 to e263e44 Compare July 6, 2022 15:54
@mvdan

mvdan commented Jul 6, 2022

Copy link
Copy Markdown
Collaborator Author

@rogpeppe ready for a final approval, I think.

@rogpeppe rogpeppe left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM thanks!

@mvdan mvdan merged commit 9d15b66 into rogpeppe:master Jul 6, 2022
@mvdan mvdan deleted the require-explicit-exec branch July 21, 2022 12:28
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.

suggest using exec foo for top-level commands rather than foo for consistency

2 participants