Open tareknaser opened 1 year ago
I am now thinking that coffee upgrade <repo_name> --branch <branch_name>
will be a bit confusing for the user because all other upgrade functions expect the user to pass the name of the plugin not the name of the repository.
But it also doesn't make sense to have coffee upgrade <plugin_name> --branch <branch_name>
because the branch is specific to the repository not the plugin. One repository can and probably has multiple plugins.
This is a good point we should think about it
Ok there are two case here;
coffee upgrade <repo_name> --branch <branch_name>
coffee upgrade --plugin <plugin_name> --branch <branch_name>
: this is the complex case and it is better avoid this because we do not know if the logic works.We should start with a simple solution and then iterate over it
We should start with a simple solution and then iterate over it
agreed. I will start with coffee upgrade <repo_name> --branch <branch_name>
Could you take a look at the updated issue description and confirm that this is what we want on the long term?
YEah looks good, the last points looks a little bit strange to me, but I think when we start to solve the problem it will be more clear, so all good for now
I think it makes sense for coffee upgrade
to only work on repositories, not plugins. Adding a command like coffee upgrade --plugin <plugin_name>
would complicate the code because it would create discrepancies between the remote git HEAD and the plugin's git HEAD.
it's best to stick with supporting repositories containing only one plugin. cc @vincenzopalazzo
I think it makes sense for coffee upgrade to only work on repositories, not plugins.
A repository can be a plugin, e.g: folgore
command like coffee upgrade --plugin
would complicate the code because it would create discrepancies between the remote git HEAD and the plugin's git HEAD.
Nothing is impossible with code and with a good tool like git, e.g:
There is no discrepancy, it is just a matter of git checkout <hash>
cc @tareknaser
We can also change coffee upgrade <repository_name>
to coffee upgrade --repo <repository_name>
to avoid confusion when we add coffee upgrade --plugin <plugin_name>
.
what do you think?
idk I am still confusing about the upgrade command I should think more about it, maybe while using it
i think upgrade
currently does not re-parse the manifest file. I think it should!
i think upgrade currently does not re-parse the manifest file. I think it should!
It should I agree good catch, opening an issue now
Currently, the
upgrade
command provides a way to upgrade an entire repository. However, there are several improvements that can be made to enhance the functionality and flexibility of the command. This is a tracking issue of the proposed enhancements:coffee upgrade <repo_name>
coffee upgrade <repo_name> --branch <branch_name>
⏳coffee upgrade --all
coffee upgrade --plugin <plugin_name>
coffee upgrade --plugin <plugin_name> --branch <branch_name>
coffee upgrade --plugin --all
coffee upgrade ... --verbose
(for all variants)