File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -561,10 +561,19 @@ def docs():
561
561
562
562
563
563
@app .command (rich_help_panel = 'Utils and Configs' )
564
- def config ():
564
+ def config (
565
+ path : bool = typer .Option (False , "--path" , "-p" , help = "Show config file path" )
566
+ ):
565
567
"""Launch config directory :open_file_folder:"""
566
- center_print (Rule ('・Opening config directory・' , style = '#d77dd8' ))
567
- typer .launch (Settings ().get_full_settings_path (), locate = True )
568
+ config_path = Settings ().get_config_path ()
569
+ full_settings_path = Settings ().get_full_settings_path ()
570
+
571
+ if not path :
572
+ center_print (Rule (f'・[white]Opening config directory ({ config_path } )[/]・' ,
573
+ style = '#d77dd8' ))
574
+ typer .launch (full_settings_path , locate = True )
575
+ else :
576
+ console .print (f":open_file_folder: Settings file path: { full_settings_path } " )
568
577
569
578
570
579
@app .command ()
You can’t perform that action at this time.
0 commit comments