How to find out available commands (= named operations) in sbt

I am using sbt 0.13.1 .

To list tasks in an sbt project, you can use sbt tasks -V .

How β€œCommand” is similar to a task: this is a named operation that can be performed from the sbt console and As a rule, you resort to a command when you need to do something impossible in a regular task , how can I find out which commands are available for a project sbt

Is there a similar command to list all the commands in an sbt project?

Let's say the sbt-idea plugin installed in the sbt project. How can I request a project to find out about the gen-idea team ?

This is so confusing given @Mark Harrah's comment: "gen-idea is a team, not a task." and the documentation for the sbt-idea plugin, where he says "Use the gen-idea sbt task to create Idea project files." (note the use of the task ). I am embarrassed.

+6
source share
2 answers

Does "help" help without any arguments? From my understanding of β€œtasks”, without any arguments the available tasks will be listed, and β€œhelp” without arguments will do similar actions for teams.

+4
source

I would say that this is a detail of the implementation.

Do you have a real use case when you need to list only commands? :-)

- Update 1:

 sbt $ <tab><tab> Display all 339 possibilities? (y or n) [y] # ... gen-idea # ... 

A simple tab in the terminal gives you all the actions you can perform, including gen-idea - your use case.

+1
source

Source: https://habr.com/ru/post/956351/


All Articles