@@ -692,17 +692,30 @@ def cmd_config(args: Namespace) -> None:
692692 # Show fuse config
693693 fuse_data = read_fuse_config ()
694694 if fuse_data :
695- print (f"\n FUSE config ({ fuse_path } ):" )
696- print (f" auth_client_id: { fuse_data .get ('auth_client_id' , '(not set)' )} " )
695+ print (f"\n { _bold ( 'FUSE mounts' ) } ({ fuse_path } ):" )
696+ print (f" auth_client_id: { fuse_data .get ('auth_client_id' , _dim ( '(not set)' ) )} " )
697697 mounts = fuse_data .get ("mounts" , {})
698698 if mounts :
699- print (f" mounts:" )
700699 for mp , settings in mounts .items ():
701- print (f" { mp } " )
702- for key , val in settings .items ():
703- print (f" { key } : { val } " )
700+ print (f"\n { _bold (mp )} " )
701+ # Tags
702+ tags = settings .get ("tags" , {})
703+ enabled = tags .get ("enabled" , True )
704+ threshold = tags .get ("threshold" , 0.5 )
705+ tag_status = _green ("enabled" ) if enabled else _dim ("disabled" )
706+ print (f" tags: { tag_status } , threshold { threshold } " )
707+ # Cache
708+ cache = settings .get ("cache" , {})
709+ epoch = cache .get ("epoch_check_interval" , 5.0 )
710+ max_bytes = cache .get ("content_cache_max" , 50 * 1024 * 1024 )
711+ max_mb = max_bytes / (1024 * 1024 )
712+ print (f" cache: epoch check { epoch } s, content max { max_mb :.0f} MB" )
713+ # Jobs
714+ jobs = settings .get ("jobs" , {})
715+ hidden = jobs .get ("hide_jobs" , False )
716+ print (f" jobs: { 'hidden' if hidden else 'visible' } " )
704717 else :
705- print (f" mounts: (none) " )
718+ print (f" { _dim ( 'No mounts configured.' ) } " )
706719
707720 print ()
708721
0 commit comments