nf-core / tools

Python package with helper tools for the nf-core community.
https://nf-co.re
MIT License
240 stars 188 forks source link

Add a separater between each module's set of diffs during 'preview changes' during module updates #3239

Open jfy133 opened 2 days ago

jfy133 commented 2 days ago

Description of feature

When I do a mass update of all modules in pipeline using nf-core modules update, and I preview each change, the output is very hard to read for where one module's diff starts and ends

Image

It would be nice to put either a long separator or marker that spans the whole screen so I can better see where each set of files starts/stops

e.g.

 +          type: file                                                                                                                                                                                  
 +          description: File containing software versions                                                                                                                                              
 +          pattern: "versions.yml"                                                                                                                                                                     
  authors:                                                                                                                                                                                              
    - "@louperelo"                                                                                                                                                                                      
  maintainers:                                                                                                                                                                                          

INFO     'modules/nf-core/amplify/predict/main.nf' is unchanged                                                                                                                                         
INFO     'modules/nf-core/amplify/predict/tests/main.nf.test' is unchanged                                                                                                                              
INFO     'modules/nf-core/amplify/predict/tests/tags.yml' is unchanged                                                                                                                                  
INFO     'modules/nf-core/amplify/predict/tests/main.nf.test.snap' is unchanged   
##################################################################################################                                                                                                                      
? Update module 'amplify/predict'? Yes 
INFO     Updating 'nf-core/amplify/predict'                                                                                                                                                             
INFO     Changes in module 'nf-core/amrfinderplus/run' between (c0514dfc403fa97c96f549de6abe99f03c78fe8d) and (666652151335353eef2fcd58880bcef5bc2928e1)                                                
INFO     Changes in 'amrfinderplus/run/environment.yml':                                                                                                                                                

 --- modules/nf-core/amrfinderplus/run/environment.yml                                                                                                                                                  
 +++ modules/nf-core/amrfinderplus/run/environment.yml                                                                                                                                                  
 @@ -1,7 +1,5 @@                                                                                                                                                                                        
 -name: amrfinderplus_run                                                                                                                                                                               
  channels:                                                                                                                                                                                             
    - conda-forge                                                                                                                                                                                       
    - bioconda                                                                                                                                                                                          
 -  - defaults                                                                                                                                                                                          
  dependencies:                                                                                                                                                                                         
    - bioconda::ncbi-amrfinderplus=3.12.8                                                                                                                                                               

INFO     Changes in 'amrfinderplus/run/meta.yml':                                                                                                                                                       

 --- modules/nf-core/amrfinderplus/run/meta.yml                              
mashehu commented 1 day ago

how about this way?

Image