@@ -44,20 +44,19 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
4444
4545 let mut table = Table :: new ( ) ;
4646 table
47- . set_header ( vec ! [ "NAME" , "DESCRIPTION" , "AUTHOR" , "VERSION" ] )
48- . set_content_arrangement ( ContentArrangement :: Dynamic )
49- . load_preset ( comfy_table:: presets:: UTF8_FULL )
50- . apply_modifier ( comfy_table:: modifiers:: UTF8_ROUND_CORNERS )
51- . apply_modifier ( comfy_table:: modifiers:: UTF8_SOLID_INNER_BORDERS ) ;
47+ . set_header ( vec ! [ "NAME" , "DESCRIPTION" , "AUTHOR" , "VERSION" , "PATH" ] )
48+ . set_content_arrangement ( ContentArrangement :: DynamicFullWidth ) ;
5249
53- for ( name, config) in themes {
50+ for ( name, theme) in themes {
51+ let config = & theme. config ;
5452 table. add_row ( vec ! [
5553 Cell :: new( name)
5654 . fg( Color :: Green )
5755 . add_attribute( Attribute :: Bold ) ,
5856 Cell :: new( & config. description) ,
5957 Cell :: new( & config. author) ,
6058 Cell :: new( & config. version) . fg( Color :: Cyan ) ,
59+ Cell :: new( & theme. path. to_str( ) . unwrap_or( "N/A" ) ) ,
6160 ] ) ;
6261 }
6362
@@ -106,7 +105,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
106105 let theme = watch_matches. get_one :: < String > ( "theme" ) . unwrap ( ) ;
107106 let http_port = watch_matches. get_one :: < u16 > ( "http-port" ) . unwrap ( ) ;
108107 let ws_port = watch_matches. get_one :: < u16 > ( "ws-port" ) . unwrap ( ) ;
109-
108+
110109 if let Err ( e) = watch:: watch_command ( theme, * http_port, * ws_port) {
111110 error ! ( "Couldn't start live view: {}" , e) ;
112111 return Err ( format ! ( "Error starting watch: {}" , e) . into ( ) ) ;
@@ -179,7 +178,8 @@ fn create_custom_theme(name: &str, base: &str) -> Result<(), Box<dyn std::error:
179178
180179 let mut theme_manager = ThemeManager :: new ( ) ;
181180 theme_manager. set_theme ( base) ?;
182- let base_theme = theme_manager. get_current_theme ( )
181+ let base_theme = theme_manager
182+ . get_current_theme ( )
183183 . ok_or_else ( || format ! ( "Base theme '{}' not found" , base) ) ?;
184184
185185 let base_templates_dir = base_theme. path . join ( "templates" ) ;
@@ -197,7 +197,11 @@ version = "0.1.0"
197197 ) ;
198198 std:: fs:: write ( new_theme_dir. join ( "config.toml" ) , config_content) ?;
199199
200- println ! ( "✅ Created custom theme '{}' in {}" , name, new_theme_dir. display( ) ) ;
200+ println ! (
201+ "✅ Created custom theme '{}' in {}" ,
202+ name,
203+ new_theme_dir. display( )
204+ ) ;
201205 println ! ( "You can now edit the theme files in your IDE and use it with:" ) ;
202206 println ! ( "- ferrisume watch --theme {}" , name) ;
203207 println ! ( "- ferrisume export --theme {}" , name) ;
0 commit comments