@@ -91,7 +91,7 @@ def info_main(*args):
9191def info_notify (s ):
9292 info ('{}{}{}{}' .format (Style .BRIGHT , Fore .LIGHTBLUE_EX , s , Style .RESET_ALL ))
9393
94- def pretty_log_dists (dists ):
94+ def pretty_log_dists (dists , log_func = info ):
9595 infos = []
9696 for dist in dists :
9797 infos .append ('{Fore.GREEN}{Style.BRIGHT}{name}{Style.RESET_ALL}: '
@@ -101,7 +101,7 @@ def pretty_log_dists(dists):
101101 Fore = Fore , Style = Style ))
102102
103103 for line in infos :
104- info ('\t ' + line )
104+ log_func ('\t ' + line )
105105
106106def shprint (command , * args , ** kwargs ):
107107 '''Runs the command (which should be an sh.Command instance), while
@@ -2554,7 +2554,12 @@ def recipes(self, args):
25542554
25552555 def bootstraps (self , args ):
25562556 '''List all the bootstraps available to build with.'''
2557- print (list (Bootstrap .list_bootstraps ()))
2557+ for bs in Bootstrap .list_bootstraps ():
2558+ bs = Bootstrap .get_bootstrap (bs , self .ctx )
2559+ print ('{Fore.BLUE}{Style.BRIGHT}{bs.name}{Style.RESET_ALL}' .format (
2560+ bs = bs , Fore = Fore , Style = Style ))
2561+ print (' {Fore.GREEN}depends: {bs.recipe_depends}{Fore.RESET}' .format (
2562+ bs = bs , Fore = Fore ))
25582563
25592564 def clean_all (self , args ):
25602565 '''Delete all build components; the package cache, package builds,
@@ -2778,12 +2783,12 @@ def distributions(self, args):
27782783 dists = Distribution .get_distributions (ctx )
27792784
27802785 if dists :
2781- info ('{Style.BRIGHT}Distributions currently installed are:'
2782- '{Style.RESET_ALL}' .format (Style = Style , Fore = Fore ))
2783- pretty_log_dists (dists )
2786+ print ('{Style.BRIGHT}Distributions currently installed are:'
2787+ '{Style.RESET_ALL}' .format (Style = Style , Fore = Fore ))
2788+ pretty_log_dists (dists , print )
27842789 else :
2785- info ('{Style.BRIGHT}There are no dists currently built.'
2786- '{Style.RESET_ALL}' .format (Style = Style ))
2790+ print ('{Style.BRIGHT}There are no dists currently built.'
2791+ '{Style.RESET_ALL}' .format (Style = Style ))
27872792
27882793 def delete_dist (self , args ):
27892794 dist = self ._dist
@@ -2839,6 +2844,10 @@ def logcat(self, args):
28392844 directory. All extra args are passed as arguments to logcat.'''
28402845 self .adb (['logcat' ] + args )
28412846
2847+ def status (self , args ):
2848+ self .recipes (args )
2849+ self .bootstraps (args )
2850+ self .dists (args )
28422851
28432852def main ():
28442853 ToolchainCL ()
0 commit comments