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

feat: add host module #286

Merged
merged 7 commits into from Sep 4, 2019
Merged

feat: add host module #286

merged 7 commits into from Sep 4, 2019

Conversation

ahouts
Copy link
Contributor

@ahouts ahouts commented Sep 4, 2019

Description

Add a host module as requested by @chipbuster.
Displays the system hostname as provided by gethostname.

Motivation and Context

Closes #157

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Screenshots (if appropriate):

image

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux
  • I have tested using Windows

Checklist:

  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

Copy link
Contributor

@chipbuster chipbuster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @ahouts! Can't wait to get this into the trunk.

You've done a great job with most of this. There's just a few small styling/convention tweaks I'd like to do and a few questions I'd like to have answered just so that I understand some of the implications.

After that, we can get this baby merged!

docs/config/README.md Show resolved Hide resolved
src/modules/host.rs Outdated Show resolved Hide resolved
src/modules/host.rs Outdated Show resolved Hide resolved
docs/config/README.md Outdated Show resolved Hide resolved
tests/testsuite/host.rs Outdated Show resolved Hide resolved
src/modules/host.rs Outdated Show resolved Hide resolved
@ahouts
Copy link
Contributor Author

ahouts commented Sep 4, 2019

@chipbuster changes from the review are pushed

Copy link
Member

@matchai matchai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 👍

docs/config/README.md Outdated Show resolved Hide resolved
src/modules/hostname.rs Show resolved Hide resolved
@matchai matchai merged commit 84688e4 into starship:master Sep 4, 2019
@matchai
Copy link
Member

matchai commented Sep 4, 2019

Thank you for your contribution, Andrew! 😄

@all-contributors Please add @ahouts for code, docs and test!

@allcontributors
Copy link
Contributor

@matchai

I've put up a pull request to add @ahouts! 🎉

@bbigras
Copy link
Contributor

bbigras commented Sep 4, 2019

Thanks Andrew. I can't wait to use this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add hostname module
4 participants