@@ -90,7 +90,7 @@ def info_main(*args):
90
90
def info_notify (s ):
91
91
info ('{}{}{}{}' .format (Style .BRIGHT , Fore .LIGHTBLUE_EX , s , Style .RESET_ALL ))
92
92
93
- def pretty_log_dists (dists ):
93
+ def pretty_log_dists (dists , log_func = info ):
94
94
infos = []
95
95
for dist in dists :
96
96
infos .append ('{Fore.GREEN}{Style.BRIGHT}{name}{Style.RESET_ALL}: '
@@ -100,7 +100,7 @@ def pretty_log_dists(dists):
100
100
Fore = Fore , Style = Style ))
101
101
102
102
for line in infos :
103
- info ('\t ' + line )
103
+ log_func ('\t ' + line )
104
104
105
105
def shprint (command , * args , ** kwargs ):
106
106
'''Runs the command (which should be an sh.Command instance), while
@@ -2498,7 +2498,12 @@ def recipes(self, args):
2498
2498
2499
2499
def bootstraps (self , args ):
2500
2500
'''List all the bootstraps available to build with.'''
2501
- print (list (Bootstrap .list_bootstraps ()))
2501
+ for bs in Bootstrap .list_bootstraps ():
2502
+ bs = Bootstrap .get_bootstrap (bs , self .ctx )
2503
+ print ('{Fore.BLUE}{Style.BRIGHT}{bs.name}{Style.RESET_ALL}' .format (
2504
+ bs = bs , Fore = Fore , Style = Style ))
2505
+ print (' {Fore.GREEN}depends: {bs.recipe_depends}{Fore.RESET}' .format (
2506
+ bs = bs , Fore = Fore ))
2502
2507
2503
2508
def clean_all (self , args ):
2504
2509
'''Delete all build components; the package cache, package builds,
@@ -2722,12 +2727,12 @@ def distributions(self, args):
2722
2727
dists = Distribution .get_distributions (ctx )
2723
2728
2724
2729
if dists :
2725
- info ('{Style.BRIGHT}Distributions currently installed are:'
2726
- '{Style.RESET_ALL}' .format (Style = Style , Fore = Fore ))
2727
- pretty_log_dists (dists )
2730
+ print ('{Style.BRIGHT}Distributions currently installed are:'
2731
+ '{Style.RESET_ALL}' .format (Style = Style , Fore = Fore ))
2732
+ pretty_log_dists (dists , print )
2728
2733
else :
2729
- info ('{Style.BRIGHT}There are no dists currently built.'
2730
- '{Style.RESET_ALL}' .format (Style = Style ))
2734
+ print ('{Style.BRIGHT}There are no dists currently built.'
2735
+ '{Style.RESET_ALL}' .format (Style = Style ))
2731
2736
2732
2737
def delete_dist (self , args ):
2733
2738
dist = self ._dist
@@ -2783,6 +2788,10 @@ def logcat(self, args):
2783
2788
directory. All extra args are passed as arguments to logcat.'''
2784
2789
self .adb (['logcat' ] + args )
2785
2790
2791
+ def status (self , args ):
2792
+ self .recipes (args )
2793
+ self .bootstraps (args )
2794
+ self .dists (args )
2786
2795
2787
2796
def main ():
2788
2797
ToolchainCL ()
0 commit comments