rich explore · browse a document

0.0 s

Screenshots

❯ path=$(rich explore config.yaml)                                                                  
? config.yaml ›                                                                                     
  $                                                                                                 
❯ ▾ $ {…} 6 keys                              │ $                                                   
  ├── name: "storefront"                      │ ├── name: "storefront"                              
  ├── version: "2.4.1"                        │ ├── version: "2.4.1"                                
  ├── ▸ server: {…} 3 keys                    │ ├── server                                          
  ├── ▸ database: {…} 2 keys                  │ │   ├── host: "0.0.0.0"                             
  ├── ▸ users: […] 2 items                    │ │   ├── port: 8080                                  
  └── ▸ features: {…} 2 keys                  │ │   └── tls                                         
                                              │ │       ├── enabled: true                           
                                              │ │       └── certificate: "/etc/storefront/cert.pem" 
                                              │ ├── database                                        
  7/25 · ↑↓ move · enter pick · ←→ fold · ctrl+y path · alt+y value · esc cancel                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
tree
❯ path=$(rich explore config.yaml)                                                                  
? config.yaml ›                                                                                     
  $ › server › port                                                                                 
  ▾ $ {…} 6 keys                              │ port: 8080                                          
  ├── name: "storefront"                      │                                                     
  ├── version: "2.4.1"                        │                                                     
  ├── ▾ server: {…} 3 keys                    │                                                     
  │   ├── host: "0.0.0.0"                     │                                                     
❯ │   ├── port: 8080                          │                                                     
  │   └── ▸ tls: {…} 2 keys                   │                                                     
  ├── ▸ database: {…} 2 keys                  │                                                     
  ├── ▸ users: […] 2 items                    │                                                     
  └── ▸ features: {…} 2 keys                  │                                                     
  10/25 · ↑↓ move · enter pick · ←→ fold · ctrl+y path · alt+y value · esc cancel                   
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
expanded
❯ path=$(rich explore config.yaml)                                                                  
? config.yaml › name: "grace"                                                                       
❯ echo "$path"                                                                                      
$.users[1].name                                                                                     
❯                                                                                                   
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
answer