coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.69k stars 1.35k forks source link

cli: rename workspace / rename program #1301

Open paul-schaaf opened 2 years ago

paul-schaaf commented 2 years ago

command that renames the workspace or a program in it.

useful cause project/workspace name appears in multiple locations and users shouldnt have to edit all of the manually

jtomada commented 2 years ago

hi Paul first contrib for me, but i'd like to take a stab at this

paul-schaaf commented 2 years ago

great! go ahead @allen0x1

jtomada commented 2 years ago

hey @paul-schaaf I put up a draft PR for visibility. I still have some todo's tho.

quick thought -

currently it expects users to be in root of the workspace (figured i'd use the with_workspace() check), but im thinking it should work similar to unix mv dir1 dir2 where you could run this outside of the workspace root.

any opinion on this?

thanks

jtomada commented 2 years ago

should be cleaned up now. lmk if any thoughts on above.

jtomada commented 2 years ago

@paul-schaaf are you available to review PR https://github.com/project-serum/anchor/pull/1424?

dahifi commented 2 years ago

There any chance this might get completed?

jtomada commented 2 years ago

There any chance this might get completed?

Sorry, probably won't have the time on my end, but happy to answer any questions about the PR above in case anyone else wants to take it on.