Shortcut for installing suggested repositories.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2023-03-05 18:47:23 -05:00
parent e75f3f66e8
commit 49e98461a3

View File

@ -22,6 +22,29 @@ ExoRepo class >> index [
^ reposIndex ^ reposIndex
] ]
{ #category : #accessing }
ExoRepo class >> install: shortNameString [
| repo |
repo := self index
detect: [:current | current repositoryName = shortNameString ]
ifNone: [
^ 'ERROR!:
No repository named "', shortNameString, '".
Please run
ExoRepo index
to list know repositories or load your own repository with:
ExoRepo new
repository: {repositoryAddres};
load.
replacing "{repositoryAddres}" with a Git public repository' ].
^ repo load
]
{ #category : #accessing } { #category : #accessing }
ExoRepo >> load [ ExoRepo >> load [
"I load the configuration of this package using a external Gitea repository." "I load the configuration of this package using a external Gitea repository."