A plugin for Typer command define within cmd2 #1530
                  
                    
                      KelvinChung2000
                    
                  
                
                  started this conversation in
                Show and tell
              
            Replies: 1 comment
-
| @KelvinChung2000 Thanks for the cool example. Feel free to submit a PR if you would like to add it under the  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I have written a plugin that lets you define all your commands like a Typer command. For example:
I have added an extra construct,
CompleterSpec, which allows you to add a completer for the command. This provides a way to add completer. I have only implemented it such that it now only works with single argument with one completer, as this is good enough for me for now. But likely can extend it to have completer for per argument command entry. I have no plan to maintain or extend it right now, but still a nice little thing to share.The code
Beta Was this translation helpful? Give feedback.
All reactions