@@ -209,9 +209,9 @@ impl ToolsSubcommand {
209
209
session. stderr,
210
210
style:: SetForegroundColor ( Color :: Green ) ,
211
211
if valid_tools. len( ) > 1 {
212
- style:: Print ( format!( "\n Tools '{}' are " , valid_tools. join( "', '" ) ) )
212
+ style:: Print ( format!( "Tools '{}' are " , valid_tools. join( "', '" ) ) )
213
213
} else {
214
- style:: Print ( format!( "\n Tool '{}' is " , valid_tools[ 0 ] ) )
214
+ style:: Print ( format!( "Tool '{}' is " , valid_tools[ 0 ] ) )
215
215
} ,
216
216
style:: Print ( "now trusted. I will " ) ,
217
217
style:: SetAttribute ( Attribute :: Bold ) ,
@@ -226,6 +226,7 @@ impl ToolsSubcommand {
226
226
"this tool"
227
227
}
228
228
) ) ,
229
+ style:: Print ( "\n " ) ,
229
230
style:: SetForegroundColor ( Color :: Reset ) ,
230
231
) ?;
231
232
}
@@ -256,11 +257,11 @@ impl ToolsSubcommand {
256
257
session. stderr,
257
258
style:: SetForegroundColor ( Color :: Green ) ,
258
259
if valid_tools. len( ) > 1 {
259
- style:: Print ( format!( "\n Tools '{}' are " , valid_tools. join( "', '" ) ) )
260
+ style:: Print ( format!( "Tools '{}' are " , valid_tools. join( "', '" ) ) )
260
261
} else {
261
- style:: Print ( format!( "\n Tool '{}' is " , valid_tools[ 0 ] ) )
262
+ style:: Print ( format!( "Tool '{}' is " , valid_tools[ 0 ] ) )
262
263
} ,
263
- style:: Print ( "set to per-request confirmation." ) ,
264
+ style:: Print ( "set to per-request confirmation.\n " ) ,
264
265
style:: SetForegroundColor ( Color :: Reset ) ,
265
266
) ?;
266
267
}
@@ -274,14 +275,14 @@ impl ToolsSubcommand {
274
275
. for_each ( |FigTool :: ToolSpecification ( spec) | {
275
276
session. tool_permissions . trust_tool ( spec. name . as_str ( ) ) ;
276
277
} ) ;
277
- queue ! ( session. stderr, style:: Print ( TRUST_ALL_TEXT ) , ) ?;
278
+ queue ! ( session. stderr, style:: Print ( TRUST_ALL_TEXT ) , style :: Print ( " \n " ) ) ?;
278
279
} ,
279
280
Self :: Reset => {
280
281
session. tool_permissions . reset ( ) ;
281
282
queue ! (
282
283
session. stderr,
283
284
style:: SetForegroundColor ( Color :: Green ) ,
284
- style:: Print ( "\n Reset all tools to the default permission levels." ) ,
285
+ style:: Print ( "Reset all tools to the default permission levels.\n " ) ,
285
286
style:: SetForegroundColor ( Color :: Reset ) ,
286
287
) ?;
287
288
} ,
@@ -291,15 +292,15 @@ impl ToolsSubcommand {
291
292
queue ! (
292
293
session. stderr,
293
294
style:: SetForegroundColor ( Color :: Green ) ,
294
- style:: Print ( format!( "\n Reset tool '{}' to the default permission level." , tool_name) ) ,
295
+ style:: Print ( format!( "Reset tool '{}' to the default permission level.\n " , tool_name) ) ,
295
296
style:: SetForegroundColor ( Color :: Reset ) ,
296
297
) ?;
297
298
} else {
298
299
queue ! (
299
300
session. stderr,
300
301
style:: SetForegroundColor ( Color :: Red ) ,
301
302
style:: Print ( format!(
302
- "\n Tool '{}' does not exist or is already in default settings." ,
303
+ "Tool '{}' does not exist or is already in default settings.\n " ,
303
304
tool_name
304
305
) ) ,
305
306
style:: SetForegroundColor ( Color :: Reset ) ,
0 commit comments