def ready_indexed_module(name): if storage.module_compiled(name): print utility.color(' - already compiled', 'green') else: path = storage.module_path(name) build_directory(path) prepare_headers(name) print utility.color(' - compiled module: ' + name, 'green')
def modules(context): local = storage.local_modules() print 'local: (' + str(len(local)) + ')' for m in local: if storage.module_compiled(m[0]): print ' - ' + m[0], '[' + utility.color('compiled', 'green') + ']' else: print ' - ' + m[0], '[' + utility.color('not compiled', 'red') + ']' if context.local: return remote = storage.remote_modules() print '\nremote: (' + str(len(remote)) + ')' for m in remote: print ' -', m[0], '[' + utility.color(m[1], 'yellow') + ']'