File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -474,7 +474,8 @@ def custom_tool(tool_name: str, params: str):
474474 except json .JSONDecodeError as e :
475475 print_error (f"Invalid JSON for params: { e } " )
476476 print_info ("Example: --params '{\" key\" :\" value\" }'" )
477- print_info ("Tip: wrap JSON in single quotes to avoid shell escaping issues." )
477+ print_info (
478+ "Tip: wrap JSON in single quotes to avoid shell escaping issues." )
478479 sys .exit (1 )
479480
480481 try :
@@ -486,14 +487,16 @@ def custom_tool(tool_name: str, params: str):
486487 if result .get ("success" ):
487488 print_success (f"Executed custom tool: { tool_name } " )
488489 else :
489- message = (result .get ("message" ) or result .get ("error" ) or "" ).lower ()
490+ message = (result .get ("message" )
491+ or result .get ("error" ) or "" ).lower ()
490492 if "not found" in message and "tool" in message :
491493 try :
492494 tools_result = run_list_custom_tools (config )
493495 tools = tools_result .get ("tools" )
494496 if tools is None :
495497 data = tools_result .get ("data" , {})
496- tools = data .get ("tools" ) if isinstance (data , dict ) else None
498+ tools = data .get ("tools" ) if isinstance (
499+ data , dict ) else None
497500 names = [
498501 t .get ("name" ) for t in tools if isinstance (t , dict ) and t .get ("name" )
499502 ] if isinstance (tools , list ) else []
Original file line number Diff line number Diff line change @@ -137,7 +137,8 @@ def info(path: str, compact: bool):
137137 click .echo (f" Type: { data .get ('prefabType' , 'Unknown' )} " )
138138 click .echo (f" Root: { data .get ('rootObjectName' , 'N/A' )} " )
139139 click .echo (f" GUID: { data .get ('guid' , 'N/A' )} " )
140- click .echo (f" Components: { len (data .get ('rootComponentTypes' , []))} " )
140+ click .echo (
141+ f" Components: { len (data .get ('rootComponentTypes' , []))} " )
141142 click .echo (f" Children: { data .get ('childCount' , 0 )} " )
142143 if data .get ('isVariant' ):
143144 click .echo (f" Variant of: { data .get ('parentPrefab' , 'N/A' )} " )
You can’t perform that action at this time.
0 commit comments