-
Notifications
You must be signed in to change notification settings - Fork 11
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
subalfred check features
could output the features in a copy-paste format
#268
Comments
Thanks for the issue. It's easy to do this. Even I could add these to your toml directly. But there is a problem. How do I keep the formatting style? Different teams might use different formatting rules. It's a little hard to make the output follow their formatting rules. |
imo formatting isn't a problem -- most developers have auto-format enabled, and it would be up to the developer to format it properly, which isn't too different than how it's implemented now. Ofc someone could use xargs or other unix commands to filter out just the dependencies and copy-paste that way too in the current subalfred version, but something integrated into the cli would be nice too |
AFAIK, there isn't a way(tomlfmt like rustfmt) to format all the toml files under a workspace. |
A note here. There are 2 situations:
|
it would be a really nice QoL and time-saving measure if subalfred outputted the missing features in a way which would allow someone to just copy-paste into the Cargo.toml file. Could be an option flag or the default. For instance, if I run
subalfred check features
now, I get the output below. It definitely already saves time over manually checking if the pallet has those features, but it would be even better if I could output it in TOML format alreadyOutput Logs
The text was updated successfully, but these errors were encountered: