Skip to content

Rename And Re-Reference The Coursier CLI Usages #1482

Open
@maxstreese

Description

@maxstreese

Proposed Change

Rename and re-reference the Cousier CLI from coursier to cs.

Motivation

For some time now the Coursier CLI is named cs instead of coursier. However in both the Bloop documentation as well as the code it is still named/referenced as coursier. I think this should be adjusted for two reasons:

1. Documentation Alignment

The change should be made to make the documentation of Bloop and Coursier more aligned and not cause confusion. This point is purely about changes to the Bloop documentation (replacing coursier with cs).

2. Make Bloop Functionalities Work By Default

The change should be made to make at least one functionality of Bloop actually work with recent default installations of Coursier. The functionality I am referring to here is bloop console <some-project>. The part of the source-code of Bloop that makes this happen is still assuming to find a CLI named coursier and not cs somewhere on the path which will not find anything if Coursier is installed in the recommended and documentation way.

Possible Solutions

Below I want to provide some points on possible changes that could be performed. These points are not all exclusive but can be combined. I would recommend doing point 2 combined with either one of 3 to 5.

  1. Don't do anything because Scala 3 will do things differently anyway or Bloop functionality will be integrated into SBT or whatever (I am not aware of any of this so if someone knows more than me please let me know)
  2. Rename all mentions of coursier to cs in the documentation
  3. Re-Reference coursier to cs in the Bloop source for bloop console (and any other references I did not find)
  4. Do what is written in point 3 but do it such that both are still possible and one is default and one the fallback
  5. Re-Write the functionality of bloop console such that it makes use of the Coursier library instead of relying on an external CLI (I do not know if this is possible or desirable though)

Final Words

If some maintainer could give some feedback on this I would be happy to take a stab at it. I just need to know which direction it should be. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions