-
Notifications
You must be signed in to change notification settings - Fork 1
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
Simulated run option #48
Comments
Excellent idea!
As far as I know, the argument
I suppose that "intended changes" relates to changes in the file system (directory/file created/copied, etc), and not to changes in the resulting HTML document, right?
That would be more sophisticated, but also a bit more time-consuming to implement. I suggest to start with a
Yes!
Very helpful too. Thanks! |
I hold no personal preference either way of the name choice. I like "simulate" for its clarity, but also "dry run" is a common term, and one that is really not obscure or confusing.
Indeed, showing the files that will be generated or replaced is likely sufficient for the near future. Content changes would obviously be more intricate to implement, and so a topic not worth treating immediately. |
True |
I propose a "simulated run" option that will show the results of a command without truly executing it. Hypothetical example:
The new argument would look like this:
The simulated run can show the intended changes to the generated output, similar to Ansible's
--check
or--diff
argument or Terraform'splan
command.An alternatve implementation might be like Terraform's
--auto-approve
option, wherewith the intended changes are revealed, and the executable by default pauses for user input ("Do you want to continue?") before applying the changes, with theauto-approve
argument overriding that behavior to not pause.The console output might also helpfully reveal the locations of the
output_directory
,resources_directory
, etc. as they will appear on your file system after the command is run for real. This in turn can help you know whether your arguments are set correctly. Sample output might include this information, for instance:For inspiration by similarity, see also
pmlc command_info --command convert
which appears to dynamically show certain "default values" as resolved relative to your file system:The text was updated successfully, but these errors were encountered: