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

pixi run lists tasks #1634

Open
thewtex opened this issue Jul 18, 2024 · 7 comments · May be fixed by #1649
Open

pixi run lists tasks #1634

thewtex opened this issue Jul 18, 2024 · 7 comments · May be fixed by #1649
Labels
needs-decision Undecided if this should be done ✨ enhancement Feature request

Comments

@thewtex
Copy link

thewtex commented Jul 18, 2024

Problem description

Hello fellows,

I am starting to get hooked on pixi 😁

A minor feature request:

pixi run

lists the available tasks. This is the expected behavior coming from npm, pnpm.

Thanks!

@thewtex thewtex added the ✨ enhancement Feature request label Jul 18, 2024
@ruben-arts
Copy link
Contributor

I like this to! I prototyped a interactive pixi run. Looking something like:

> pixi run
Select the task you want to run:
  > build
  - test
  - lint
  - bla

What do you think about that?

@thewtex
Copy link
Author

thewtex commented Jul 19, 2024

@ruben-arts awesome!

  • the usual pretty colors please :-D

@thewtex
Copy link
Author

thewtex commented Jul 21, 2024

And the task descriptions would be nice :-)

@ruben-arts
Copy link
Contributor

ruben-arts commented Jul 22, 2024

? Please select a task to run: ›
❯ build                
  build-docs           
  bump                 
  bump-changelog       
  deploy-dev           
  deploy-latest        
  docs                 Serve the documentation
  generate-schema      
  install              
  lint                 
  mike-serve           
  pre-commit-install   
  pre-commit-run       
  pypi-proxy           
  test                 
  test-all             
  test-schema          
  toml-format          
  toml-lint            

OR

? Please select a task to run: ›
                 build 
            build-docs 
                  bump 
        bump-changelog 
            deploy-dev 
         deploy-latest 
                  docs Serve the documentation
       generate-schema 
               install 
                  lint 
            mike-serve 
    pre-commit-install 
        pre-commit-run 
            pypi-proxy 
                  test 
              test-all 
           test-schema 
           toml-format 
❯            toml-lint 


@thewtex
Copy link
Author

thewtex commented Jul 23, 2024

@ruben-arts nice!

I find the latter more readable myself.

@vigneshmanick
Copy link
Contributor

vigneshmanick commented Jul 24, 2024

what would be even more awesome is, if the list items also have their indices printed along and you can either choose them via cursor or just type the number and press enter.

I find the first option better as a list with right aligned values is not how usually a single column list is displayed in terminal

? Please select a task / task number to run: ›
   1.    build 
   2.    build-docs 
   3.    bump 
   4.    bump-changelog 
   5.    test-schema 
   6.    toml-format 
❯  7.   toml-lint

@ruben-arts ruben-arts added the needs-decision Undecided if this should be done label Aug 5, 2024
@ruben-arts
Copy link
Contributor

Another idea for a library would be: https://github.com/lotabout/skim#use-as-a-library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-decision Undecided if this should be done ✨ enhancement Feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants