Skip to content

Commit

Permalink
chore: Update release artifacts
Browse files Browse the repository at this point in the history
1. Add jvm main class to use as fallback for coursier if platform is not supported
2. Fix fish completions to not show errors, otherwise they would show up every time `bloop autocomplete` is run outside a directory with .bloop available.
  • Loading branch information
tgodzik committed Aug 26, 2024
1 parent 9dc4d3c commit ef72235
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions etc/bloop-coursier.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"launcherType": "graalvm-native-image",
"prebuilt": "$PREBUILT",
"dependencies": [
"ch.epfl.scala:bloop-cli_2.13:$VERSION"
]
}
"ch.epfl.scala::bloop-cli:$VERSION"
],
"mainClass": "bloop.cli.Bloop"
}
10 changes: 5 additions & 5 deletions etc/fish-completions
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ function _boolean
end

function _reporters
bloop autocomplete --format fish --mode reporters
bloop autocomplete --format fish --mode reporters 2> /dev/null
end

function _protocols
bloop autocomplete --format fish --mode protocols
bloop autocomplete --format fish --mode protocols 2> /dev/null
end

function _testsfqcn
set -l cmd (commandline -poc)
set -e cmd[1]
set -l project $cmd[2]
if test -n "$project"
bloop autocomplete --format fish --mode testsfqcn --project $project
bloop autocomplete --format fish --mode testsfqcn --project $project 2> /dev/null
end
end

function _mainsfqcn
set -l cmd (commandline -poc)
set -e cmd[1]
set -l project $cmd[2]
bloop autocomplete --format fish --mode mainsfqcn --project $project
bloop autocomplete --format fish --mode mainsfqcn --project $project 2> /dev/null
end

function __assert_args_count -a count
Expand Down Expand Up @@ -73,7 +73,7 @@ function __fish_seen_subcommand_from_project_commands
end

function _flags_for_command -a cmd
bloop autocomplete --format fish --mode flags --command $cmd
bloop autocomplete --format fish --mode flags --command $cmd 2> /dev/null
end

function _is_project_command -a cmd
Expand Down

0 comments on commit ef72235

Please sign in to comment.