views#

处理所有显示/视图逻辑。

函数#

print_notices(channel_notices)

接受通道通知响应列表并打印显示。

print_notice_message(→ None)

打印单个通道通知。

print_more_notices_message(→ None)

有条件地显示一条消息,告知用户还有多少条消息。

print_notices(channel_notices: collections.abc.Sequence[conda.notices.types.ChannelNotice])#

接受通道通知响应列表并打印显示。

参数:

channel_notices -- ChannelNotice 对象的序列。

print_notice_message(notice: conda.notices.types.ChannelNotice, indent: str = '  ') None#

打印单个通道通知。

print_more_notices_message(total_notices: int, displayed_notices: int, viewed_notices: int) None#

有条件地显示一条消息,告知用户还有多少条消息。