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

nps [enter] should list only top level commands by default. #236

Open
nagarsuresh opened this issue Sep 23, 2022 · 0 comments
Open

nps [enter] should list only top level commands by default. #236

nagarsuresh opened this issue Sep 23, 2022 · 0 comments

Comments

@nagarsuresh
Copy link

nagarsuresh commented Sep 23, 2022

First of all its an awesome tool and I can't imagine how as i was working without it..

nps command by default displays all scripts defined in the package-scripts i.e

nps [enter]

lists down all the nps scripts available, but this lists all the scripts even when they are not TOP level script or dependent scripts. Please change nps default command to only list the TOP level scripts which are not dependent on other scripts and may have additional flag to list all scripts e.g.

module.exports = {
  scripts: {
      build: npsUtils.series.nps('prebuild', 'buildOnly', 'postbuild'),
      prebuild: '...',
      buildOnly: .....
      postbuild: .....
  }
}
nps [enter]

build - ............
prebuild - ..............
buildOnly - ................
postbuild: ...............

It should by default only display "build" script and may be add additional flag like

nps <enter>
build - ............

-------------------------
nps --all

to display all scripts.

@nagarsuresh nagarsuresh changed the title nps to list only top level commands nps [enter] should list only top level commands by default. Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant