Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TAB auto bash-completion for fab #148

arabnejad opened this issue Sep 12, 2019 · 3 comments

TAB auto bash-completion for fab #148

arabnejad opened this issue Sep 12, 2019 · 3 comments


Copy link

just as suggestion, to make your life easier,
we can have an option for users to see the list of available tasks just by pressing tab key, so you don't need to memorize them
so, when you run the fab command, by hitting the tab key, you will see the list of all possible tasks

$ fab <tab-key>
add_camp                    find_capacity               plot_output               
add_new_link                flare_ensemble              plot_uq_output            
archer                      flare_local                 print_config              
archive                     flee                        print_machine_config_info 
bash_alias                  flee_and_plot               probe                     
blackbox                    flee_conflict_forecast      prometheus                
bluejoule                   flee_ensemble               put_configs               
bluewonder1                 flees                       put_profiles              
bluewonder2                 food_flee                   put_results               
campaign2ensemble           fuzzyflee                   qcg                       
cancel_job                  fuzzyflee_ensemble          QCG_PJ                    
cartesius                   get_fabsim_command_history  redirect                  
change_capacities           get_fabsim_git_hash         remove_plugin             
change_distance             get_flee_location           run_ssudan_paper          
clear_active_conflict       get_running_location        setup_fabsim              
clear_results               install_app                 setup_fabsim_dirs         
close_border                install_packages            setup_ssh_keys            
close_camp                  install_plugin              stat                      
compare_food                instantiate                 supermuc1_fat             
couple_flare_to_flee        job_info                    supermuc1_thin            
delete_job                  job_stat                    supermuc2                 
delete_location             job_stat_update             sync_flee                 
dummy                       lammps_dummy                test_sensitivity          
dummy_ensemble              load_conflict               test_variability          
Eagle                       localhost                   test_variability_food     
eagle_hidalgo               machine                     update_plugin             
eagle_vecma                 mavrino                     validate_flee             
ensemble2campaign           monitor                     validate_flee_output      
extract_conflict_file       oppenheimer                 validate_results          
fetch_configs               pflee                       wait_complete             
fetch_profiles              pflee_ensemble                                        
fetch_results               pflee_test 

this functionality is already implemented and tested :)
the only exception is for Z-Shell or zsh which can is solved already, and I haven't tested it for macOS, but I think that should not be a big issue,

what do you think @djgroen

Copy link
Collaborator Author

I just tested it on macOS, and works :)

Copy link

djgroen commented Sep 12, 2019 via email

@arabnejad arabnejad added this to the VECMA M15 release milestone Sep 12, 2019
Copy link

djgroen commented Sep 12, 2019

This has happened, with thanks to @arabnejad.

@djgroen djgroen closed this as completed Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants