• Home
  • Raw
  • Download

Lines Matching refs:styled

40         let mut styled = StyledStr::new();  in create_usage_with_title()  localVariable
41 styled.header("Usage:"); in create_usage_with_title()
42 styled.none(" "); in create_usage_with_title()
43 styled.extend(usage.into_iter()); in create_usage_with_title()
44 Some(styled) in create_usage_with_title()
75 let mut styled = StyledStr::new(); in create_help_usage() localVariable
81 styled.literal(name); in create_help_usage()
84 styled.placeholder(" [OPTIONS]"); in create_help_usage()
87 self.write_args(&[], !incl_reqs, &mut styled); in create_help_usage()
100 styled.none("\n"); in create_help_usage()
101 styled.none(" "); in create_help_usage()
104 styled.literal(name); in create_help_usage()
106 styled.extend(self.create_help_usage(false).into_iter()); in create_help_usage()
108 styled.placeholder(" <"); in create_help_usage()
109 styled.placeholder(placeholder); in create_help_usage()
110 styled.placeholder(">"); in create_help_usage()
112 styled.placeholder(" <"); in create_help_usage()
113 styled.placeholder(placeholder); in create_help_usage()
114 styled.placeholder(">"); in create_help_usage()
116 styled.placeholder(" ["); in create_help_usage()
117 styled.placeholder(placeholder); in create_help_usage()
118 styled.placeholder("]"); in create_help_usage()
121 styled.trim(); in create_help_usage()
122 debug!("Usage::create_help_usage: usage={}", styled); in create_help_usage()
123 styled in create_help_usage()
130 let mut styled = StyledStr::new(); in create_smart_usage() localVariable
132 styled.literal( in create_smart_usage()
139 self.write_args(used, false, &mut styled); in create_smart_usage()
142 styled.placeholder(" <"); in create_smart_usage()
143 styled.placeholder( in create_smart_usage()
148 styled.placeholder(">"); in create_smart_usage()
150 styled in create_smart_usage()
190 pub(crate) fn write_args(&self, incls: &[Id], force_optional: bool, styled: &mut StyledStr) { in write_args()
192 styled.none(" "); in write_args()
193 styled.extend(required.into_iter()); in write_args()
280 let styled = required_positionals[index].take().unwrap(); in get_args() localVariable
283 new.extend(styled.into_iter()); in get_args()
287 let mut styled; in get_args() localVariable
289 styled = StyledStr::new(); in get_args()
290 styled.literal("[-- "); in get_args()
291 styled.extend(pos.stylized(Some(true)).into_iter()); in get_args()
292 styled.literal("]"); in get_args()
294 styled = pos.stylized(Some(false)); in get_args()
296 required_positionals[index] = Some(styled); in get_args()