-
Notifications
You must be signed in to change notification settings - Fork 24
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
Let toml set
edit the actual file
#7
Comments
FYI I added this in my fork: https://github.com/kurtbuilds/toml-cli You have to Since this project appears to be unmaintained, I reached out to Greg about contributing to this repo & crates.io to keep this tool maintained. |
Thank you @kurtbuilds , i saw you made a PR with it, Hope you will be soon accepted as a maintainer for this project. |
Hello! Yes, I definitely agree this is an important feature. One question this issue thread is a good place to discuss is what exactly the interface should look like. I'd be glad to hear feedback on that from anyone who's used this From discussion at #13 (comment) on @liubin's PR #13, here's one thought: instead of just making this an option, how about we go further and make it the default behavior of I feel like for most use cases, you're always going to want to write the edited file back. So it'd be cleaner if you could say simply That would also make it align better with the name "set" than it currently does. We can always include an option to go back to the other behavior, with a name like |
Now, making this happen by default would be an incompatible change. But as the README says:
Making However, I'd certainly be interested in hearing feedback on that incompatible change: does anyone have the existing If so, there's also an intermediate option to take a more sequenced approach, something like:
That way we end up with the same behavior as discussed in the previous comment #7 (comment) , where |
toml set
edit the actual file
OK, I'm going to go with some version of the "more sequenced approach" described in my previous comment #7 (comment). The endpoint will be that a plain I plan to call the options The warning/error messages that transitional versions print on a plain One thing that informs this decision is that I went and did a bit of a survey of uses of
|
Hi,
As many other tools like sed , i think it would be interesting to confirm file editing with a flag instead of using stdout.
So the argument after 'set' won't be repeated in the command.
What do you think?
Regards,
Busyvar
The text was updated successfully, but these errors were encountered: