rs-rich-interact · components

0.0 s

Screenshots

❯ c select                                                                                          
? Open › evlp                                                                                       
❯ src/event_loop.rs  611 B                    │    1 //! The event loop: take jobs, hand them to wor
                                              │    2                                                
                                              │    3 use std::time::Duration;                       
                                              │    4                                                
                                              │    5 /// One job from the queue.                    
                                              │    6 pub struct Job {                               
                                              │    7     pub name: String,                          
                                              │    8     pub tries: u32,                            
  1/8 · ↑↓ move · enter pick · esc cancel                                                           
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
select
❯ c multi                                                                                           
? Publish ›                                                                                         
  ◉ rs-rich  the faithful port of rich                                                              
  ○ rs-rich-ext  extensions: frames, live, workflows                                                
  ◉ rs-rich-cli  the rich command                                                                   
  ◉ rs-rich-art  images, GIFs and banners                                                           
❯ ○ rs-rich-record  tapes: record terminal sessions                                                 
  ○ rs-rich-interact  interactive components                                                        
  ○ rs-rich-mermaid  Mermaid diagrams as text                                                       
  ○ rs-rich-lumis  tree-sitter highlighting                                                         
  8/8 · 3 marked · tab mark · ↑↓ move · enter pick · esc cancel                                     
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
multi
❯ c input                                                                                           
? Crate › recrd                                                                                     
    rs-rich-record  tapes: record terminal sessions                                                 
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
input-suggestions
❯ c input                                                                                           
? Crate › recrd                                                                                     
  ✗ "recrd" is not one of the workspace's crates                                                    
    rs-rich-record  tapes: record terminal sessions                                                 
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
input-error
❯ c confirm                                                                                         
? Apply this change to production?                                                                  
  deployment.yaml                                                                                   
    - replicas: 2                                                                                   
    + replicas: 5                                                                                   
    - image: api:1.4                                                                                
    + image: api:1.5                                                                                
  ⚠ 5 pods will restart, one at a time                                                              
   Apply   Dry run   Edit   Cancel                                                                  
  a/d/e/c · ←→ move · enter choose · esc cancel                                                     
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
confirm
❯ c form                                                                                            
? New service                                                                                       
❯ Name          API                                                                                 
                ✗ lowercase letters and dashes                                                      
  Port          (8080)                                                                              
  Environment   prod                                                                                
  TLS           ◉ yes                                                                               
  Deploy token  •••••••                                                                             
  tab/↑↓ move · enter next · ctrl+s submit · esc cancel                                             
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
form-error
❯ c form                                                                                            
? New service                                                                                       
  Name          api                                                                                 
  Port          8080                                                                                
  Environment   prod                                                                                
  TLS           yes                                                                                 
  Deploy token  •••••••                                                                             
name: api                                                                                           
port: 8080                                                                                          
env: prod                                                                                           
tls: true                                                                                           
token: (set)                                                                                        
❯                                                                                                   
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
form-done
   1 # orbit                                                                                        
   2                                                                                                
   3 A tiny service, here so the documentation's recordings have something to                       
   4 page through, pick from and search. Nothing in it runs.                                        
   5                                                                                                
   6 ## What it does                                                                                
   7                                                                                                
   8 orbit watches a queue, hands each job to a worker and reports progress in the                  
   9 terminal. Workers are plain functions; the scheduler decides how many run at                   
  10 once, retries a job that fails, and gives up after three tries.                                
  11                                                                                                
  12 ## Configuration                                                                               
  13                                                                                                
  14 | Setting | Default | Meaning |                                                                
  15 |---|---|---|                                                                                  
  16 | `workers` | 4 | Jobs that run at once |                                                      
  17 | `retries` | 3 | Tries before a job fails |                                                   
  18 | `port` | 8080 | Where the status page listens |                                              
  19                                                                                                
  20 ## Running it                                                                                  
  21                                                                                                
lines 1–21 of 50 · match 2/13 · n/N · / search · q quit                                             
pager