-
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.
- Loading branch information
Showing
5 changed files
with
20 additions
and
53 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 |
---|---|---|
|
@@ -5,13 +5,15 @@ | |
|
||
import click | ||
from icm.commons import commons | ||
from icm.commons import store | ||
|
||
|
||
def main(coltags: tuple, dev: bool) -> None: | ||
def main(coltags: tuple, dev: bool = False, all_: bool = False) -> None: | ||
"""ENTRY POINT: Install collections | ||
* coltag: tupla de nombres de la coleccion + tag opcional | ||
Ex. (iceK, [email protected]) | ||
* dev: Install development version | ||
* all: Install ALL stable collections | ||
""" | ||
|
||
# -- Get context information | ||
|
@@ -20,6 +22,13 @@ def main(coltags: tuple, dev: bool) -> None: | |
|
||
print() | ||
|
||
# -- "--all" has the highest priority | ||
# -- First check it! | ||
if all_: | ||
for coltag in store.COLLECTIONS["stable"]: | ||
install_collection(collection, coltag, dev) | ||
return | ||
|
||
# -- Install the collections! | ||
for coltag in coltags: | ||
install_collection(collection, coltag, dev) | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""Collection store!: Available collections""" | ||
|
||
COLLECTIONS = { | ||
"stable": [ | ||
"iceK", | ||
|