def display(id):
''' Display build information by build id. '''
history = load_history()
build = get_build_info(history, id or history['current'])
is_current = build['id'] == history['current']
timestamp = local_timestamp(build['timestamp'])
table = SingleTable([
[green('Build ' + build['id'])],
['ID: ' + green(build['id'])],
['Commit: ' + green(build['commit'])],
['Branch: ' + green(build['branch'])],
['Stage: ' + green(build['stage'])],
['Created By: ' + green(build['createdBy'])],
['Path: ' + green(build['path'])],
['Current Build: ' + green('Yes' if is_current else 'No')],
['Timestamp: ' + green(timestamp)]
])
print(table.table)
评论列表
文章目录