Commit Graph

9 Commits (4860fb8c60981b58fcad95e7a8b71d34ea50c09d)

Author SHA1 Message Date
Marcos Pereira 08ff08e043
Support multiple sdkman output formats
sdkman has a specific output format for Java candidate since
there are multiple vendors and builds. For example, when running
`sdk list maven`, the format is a simple list like:

    3.6.2
    3.6.1
    3.6.0
    3.5.4
    3.5.3
    3.5.2
    3.5.0
    3.3.9

But for `sbt list java`, the output is a table like:

    ================================================================================
     Vendor        | Use | Version      | Dist    | Status     | Identifier
    --------------------------------------------------------------------------------
     AdoptOpenJDK  |     | 15.0.1.j9    | adpt    |            | 15.0.1.j9-adpt
                   |     | 15.0.1.hs    | adpt    | installed  | 15.0.1.hs-adpt
     ...
     Amazon        |     | 15.0.1       | amzn    |            | 15.0.1-amzn
                   |     | 11.0.9       | amzn    |            | 11.0.9-amzn
     ...
     Azul Zulu     |     | 15.0.1       | zulu    |            | 15.0.1-zulu
                   |     | 15.0.1.fx    | zulu    |            | 15.0.1.fx-zulu
     ...

Therefore, the completion script has to handle both formats.
2021-01-11 11:16:15 -05:00
David Farrell e932d8371f
Add hooks to check .sh and .bash headers - Fixes #1491 (#1765)
* Add hooks to check .sh and .bash headers
* Adds hooks/ to clean_files.txt
2021-01-09 18:02:26 +02:00
Marcos Pereira fe7d3ef177
Format sdkman bash completion with shfmt 2021-01-08 16:42:18 -05:00
Marcos Pereira 56348b1a12
Add sdkman bash completion to clean_files 2021-01-08 16:38:08 -05:00
Marcos Pereira 5ca2c43aed
Add support to newer versions of sdkman
Some new commands are available, and also aliases
for commands such as `i` for `install`.
2021-01-04 18:18:13 -05:00
Rutger Lubbers ac5a8aca47
Added completion of installable versions
The versions that can be installed were not completed. The list of available versions showed the installed versions.
The function retrieves the available versions and removes the already installed versions.
2018-08-27 12:32:12 +02:00
Bruno Meneguello 126703fb76
Fix "sdkman use" version completion
There is no more the CSV variable after __sdkman_build_version_csv
2017-11-27 15:03:17 -02:00
Frank Becker 0c55ed892c fixed version completion for sdkman 3.3.2 2016-02-06 12:18:02 +01:00
Frank Becker e2a596b708 renamed gvmtool to sdkman 2015-11-16 16:13:32 +01:00