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

Add a Swift lang module #1245

Closed
mmng-a opened this issue May 22, 2020 · 8 comments · Fixed by #1261
Closed

Add a Swift lang module #1245

mmng-a opened this issue May 22, 2020 · 8 comments · Fixed by #1261
Labels
🧩 new module A new module to be added to starship.

Comments

@mmng-a
Copy link
Contributor

mmng-a commented May 22, 2020

Feature Request

Add Swift language module for Starship and add Swift Package Manager support to Package Version.

Swift module

The swift module shows the currently installed version of Swift. The module will be shown if any of the following conditions are met:

  • The current directory contains a Package.swift file
  • The current directory contains a file with the .swift extension
Variable Default Description
symbol "S " The symbol used before displaying the version of Swift.
style "bold orange" The style for the module.
disabled false Disables the swift module.

Swift Package Manager support to Package Version

SwiftPM's version use git's tag.

Is your feature request related to a problem? Please describe.

No, this feature is for Swifters only.

Describe alternatives you've considered

If you use Hack Nerd font, you can set U+FBE3 to symbol. It's the Swift symbol.

@mmng-a mmng-a added the ✨ enhancement A new feature implementation. label May 22, 2020
@andytom andytom added 🧩 new module A new module to be added to starship. and removed ✨ enhancement A new feature implementation. labels May 22, 2020
@vladimyr
Copy link
Member

@mcasashi-aso How about using 🐦as Swift symbol?

@mmng-a
Copy link
Contributor Author

mmng-a commented May 27, 2020

@vladimyr Thank you for development !
🐦 is not bad, but it's so different from Swift's colors that I feel it's subtle.

@vladimyr
Copy link
Member

I've seen it used in some gh readmes, can't really recall which projects, but doesn't matter it is configurable anyway 🤷

@mmng-a
Copy link
Contributor Author

mmng-a commented May 27, 2020

@vladimyr It certainly seems to be used in some projects and articles. It sounds good. Thank you!

@vladimyr
Copy link
Member

So, bird or not bird? 😁

@mmng-a
Copy link
Contributor Author

mmng-a commented May 27, 2020

Bird.

@vladimyr
Copy link
Member

Bird it is d0dc23f

@mmng-a
Copy link
Contributor Author

mmng-a commented May 27, 2020

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧩 new module A new module to be added to starship.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants