-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
icm install: Install multiple packages
- Loading branch information
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,10 @@ | |
from icm.commons import commons | ||
|
||
|
||
def main(coltag: str, dev: bool) -> None: | ||
def main(coltags: tuple, dev: bool) -> None: | ||
"""ENTRY POINT: Install collections | ||
* coltag: Nombre de la coleccion + tag opcional | ||
Ex. iceK, [email protected] | ||
* coltag: tupla de nombres de la coleccion + tag opcional | ||
Ex. (iceK, [email protected]) | ||
* dev: Install development version | ||
""" | ||
|
||
|
@@ -20,14 +20,15 @@ def main(coltag: str, dev: bool) -> None: | |
|
||
print() | ||
|
||
# -- Install the collection! | ||
install_main(collection, coltag, dev) | ||
# -- Install the collections! | ||
for coltag in coltags: | ||
install_collection(collection, coltag, dev) | ||
|
||
|
||
def install_main( | ||
def install_collection( | ||
collection: commons.Collection, coltag: str, dev: bool = False | ||
) -> None: | ||
"""Main function for installing collections | ||
"""Main function for installing only one collection | ||
* collection: Collection class (context) | ||
* coltag: name + version tag (Ex. [email protected]) | ||
* dev: Development flag | ||
|