Replies: 6 comments 14 replies
-
That's cool! I think I'll join you in week or so. Is there some sort of documentation for |
Beta Was this translation helpful? Give feedback.
-
There are some dev/docs in the repo which talks about the overview of the codebase. From there, it is pretty easy to understand things. |
Beta Was this translation helpful? Give feedback.
-
Very cool! Is the plan to make this generic so anyone could potentially write "up" modules (for lack of a better term), or to hard code supported updates into |
Beta Was this translation helpful? Give feedback.
-
Yes, the plan is to make it generic so any crate can write an For example, our #[up(3.0.0-beta.1)]
rename_fn!("clap::args::arg", "Arg", "help", "about");
#[up(3.0.0-rc.0)]
rename_fn!("clap::arg", "Arg", "with_name", "new"); When the end user is using clap v2 and runs |
Beta Was this translation helpful? Give feedback.
-
Concerns:
It's not going to be easy... |
Beta Was this translation helpful? Give feedback.
-
Yup, it's not going to be easy, but I think this is something that is desperately needed in the current tech landscape. We will start small and build up to big stuff. It is going to be challenging which makes me very interested in it 😄 DONT BE AFRAID TO UPGRADE is the motto. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Some people might know that I have been trying to get a basic experiment working for a tool that auto upgrades user's code. For example, if the user depends on clap v2, they can run this tool and upgrade the code to work with clap v3. There are a lot more things to decide for this, but here is the result of the experiment.
https://github.com/pksunkara/cargo-up
It will replace
Arg::help
toArg::about
in normal builder usage of clap v2.@CreepySkeleton @kbknapp Would like some feedback before I proceed.
Beta Was this translation helpful? Give feedback.
All reactions