renaming projects should be possible
Opened this issue · 0 comments
technocake commented
the project command is currently lacking a update
or rename
command that really should be there. If a user wants to keep all its shortcut tied to a project, but for whatever reason wants to change the name - the user should be able to.
This action will require to simply change the name of the project-file, and handle some conditionally cases:
- if the project is active, the
active-project
should also be updated - if the new name already exist, the renaming should give an error.
relevant files
source:
- bin/project
state-files
- ~/.goto/active-project
~/.goto/state/projects/<project>/private/<project>.json
~/.goto/state/projects/<project>/shared/<project>.json