Commit Graph

1252 Commits

Author SHA1 Message Date
dependabot-preview[bot]
08c7449ff4 chore(deps): Bump rayon from 1.0.3 to 1.1.0 (#78)
Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.0.3 to 1.1.0.
- [Release notes](https://github.com/rayon-rs/rayon/releases)
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md)
- [Commits](https://github.com/rayon-rs/rayon/compare/v1.0.3...rayon-core-v1.1.0)
2019-06-13 15:59:39 +01:00
Matan Kushner
66939535db
docs: Change the logo to the redesigned logo (#77) 2019-06-12 21:59:58 +01:00
dependabot-preview[bot]
facfe97da0 chore(deps): Bump git2 from 0.9.0 to 0.9.1 (#76)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/rust-lang/git2-rs/releases)
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.9.0...0.9.1)
2019-06-12 20:17:56 +01:00
Matan Kushner
097f1b05f1
Add support for prompt configuration (#62)
- Create `Config` struct that is added to `Context` when initialized
- Read `~/.confg/starship.toml` during initialization (can be updated later to also look at `$XDG_CONFIG_HOME`)
- `Context` now has a method for creating modules. This allows us to provide modules with a reference to the configuration specific to that module
2019-06-10 15:56:17 +01:00
Matan Kushner
8239fbd12b
Refactor integration tests (#71)
- Create subcommands to be able to print modules independently
	- `starship prompt` will print the full prompt
	- `starship module <MODULE_NAME>` will print a specific module
		e.g. `starship module python`
	- Added `--path` flag to print the prompt or modules without being in a specific directory
	- Added `--status` flag to provide the status of the last command, instead of requiring it as an argument
- Refactored integration tests to be end-to-end tests, since there was no way in integration tests to set the environment variables for a specific command, which was required for the `username` module
- Moved e2e tests to `tests/testsuite` to allow for a single binary to be built
	- Tests will build/run faster
	- No more false positives for unused functions
- Added tests for `username`
- Removed codecov + tarpaulin 😢
2019-06-06 13:18:00 +01:00
dependabot-preview[bot]
bb220bb5a0 chore(deps): Bump battery from 0.7.3 to 0.7.4 (#74)
Bumps [battery](https://github.com/svartalf/rust-battery) from 0.7.3 to 0.7.4.
- [Release notes](https://github.com/svartalf/rust-battery/releases)
- [Changelog](https://github.com/svartalf/rust-battery/blob/master/CHANGELOG.md)
- [Commits](https://github.com/svartalf/rust-battery/compare/0.7.3...0.7.4)
2019-06-05 14:55:04 +01:00
dependabot-preview[bot]
e76e95d3d5 chore(deps): Bump git2 from 0.8.0 to 0.9.0 (#75)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/rust-lang/git2-rs/releases)
- [Commits](https://github.com/rust-lang/git2-rs/compare/git2-curl-0.8.0...0.9.0)
2019-06-05 12:47:20 +01:00
dependabot-preview[bot]
b59e44c5fa chore(deps): Bump battery from 0.7.2 to 0.7.3 (#72)
Bumps [battery](https://github.com/svartalf/rust-battery) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/svartalf/rust-battery/releases)
- [Changelog](https://github.com/svartalf/rust-battery/blob/master/CHANGELOG.md)
- [Commits](https://github.com/svartalf/rust-battery/compare/0.7.2...0.7.3)
2019-05-31 16:53:12 +02:00
dependabot-preview[bot]
454b8f9fae chore(deps): Bump dirs from 2.0.0 to 2.0.1 (#73)
Bumps [dirs](https://github.com/soc/dirs-rs) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/soc/dirs-rs/releases)
- [Commits](https://github.com/soc/dirs-rs/commits)
2019-05-31 11:35:19 +02:00
Matan Kushner
000abfe6df
Use tarpaulin and Codecov for adding code coverage to project (#68) 2019-05-29 22:58:46 +02:00
Matan Kushner
617b278a33
Use starship-test docker image for running integration tests (#70)
* Publish docker image used in testing
* Update integration_test to pull the image and build, using the image as its cache
* Publish the built image after successful test runs on master
2019-05-29 13:27:18 +02:00
dependabot-preview[bot]
5b1c2107db chore(deps): Bump dirs from 1.0.5 to 2.0.0 (#67)
Bumps [dirs](https://github.com/soc/dirs-rs) from 1.0.5 to 2.0.0.
- [Release notes](https://github.com/soc/dirs-rs/releases)
- [Commits](https://github.com/soc/dirs-rs/commits)
2019-05-27 10:43:36 -04:00
John Letey
4cd98d862d fix: Check both stderr and stdout for Python version (#66)
* fix python version not showing for version < 3.4

* make review changes
2019-05-27 02:28:14 -04:00
Matan Kushner
c2b0f3ac49
docs: Add starship logo to README.md (#65) 2019-05-25 11:11:12 -04:00
Matan Kushner
5b989fcb9c
feat: Add battery module(#63) 2019-05-22 12:29:39 -04:00
Tim Mulqueen
4d034351e8 fix: Don't check extensions of directories (#64)
* now checks for type of path when doing scan
* added unit test to cover failure case
2019-05-22 12:04:51 -04:00
allcontributors[bot]
b2edadce05 docs: add youssefhabri as a contributor (#61)
* docs: update README.md
* docs: update .all-contributorsrc
2019-05-20 14:08:03 -04:00
dependabot[bot]
4f06057769 chore(deps): Bump tempfile from 3.0.7 to 3.0.8 (#60)
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/Stebalien/tempfile/releases)
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.0.7...v3.0.8)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-20 10:18:27 -04:00
Youssef Habri
08b238114e feat: Implement the prompt module for username (#56) 2019-05-19 22:26:12 -04:00
dependabot[bot]
a213114e9a chore(deps): Bump toml from 0.5.0 to 0.5.1 (#58)
Bumps [toml](https://github.com/alexcrichton/toml-rs) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/alexcrichton/toml-rs/releases)
- [Commits](https://github.com/alexcrichton/toml-rs/compare/0.5.0...0.5.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

Co-authored-by: Dependabot <support@dependabot.com>
2019-05-17 11:02:25 -06:00
​Snuggle
351707b0e6 Update repo emojis 🚀 => ☄🌌️ (#50)
Let's go to warp-speed!
2019-05-16 17:57:34 -06:00
Matan Kushner
cae4666bed
docs: Alphebetize roles in All Contributors 2019-05-16 10:48:30 -06:00
Matan Kushner
27046be1c9
docs: Add All Contributors to the project (#51)
- Add All Contributors section to README.md
- Add all past contributors
2019-05-16 10:46:07 -06:00
Matan Kushner
876e7d36b1
fix: handle package version panic (#57) 2019-05-16 10:06:34 -06:00
Matan Kushner
2cf69a82b7
ci: Fix CI to work with changes to Azure Pipelines build agent (#55) 2019-05-16 09:40:30 -06:00
Matan Kushner
90d6e6cf0b
Implement the git status module (#45) 2019-05-13 22:43:11 -06:00
John Letey
c95bb60571 Add integration tests for Python segment (#38) 2019-05-13 21:53:26 -06:00
Tim Mulqueen
5fd715e7c3 Implement directory scanner (#34) 2019-05-12 13:37:23 -04:00
John Letey
d3ce00c516 Add Go version module (#44) 2019-05-11 23:58:45 -04:00
Matan Kushner
8b5055d510
Parallelize prompt modules (#46) 2019-05-09 23:51:50 -04:00
Matan Kushner
c6ee5c6ac1
Refactor segments into modules (#40) 2019-05-01 16:34:24 -04:00
Matan Kushner
d945b03093
Install a fixed version of rust for CI integration tests (#39) 2019-05-01 11:12:02 -04:00
John Letey
0b9334f438 Add the package version segment (#35) 2019-05-01 10:45:56 -04:00
Matan Kushner
81b3288568
Create CODE_OF_CONDUCT.md (#42) 2019-04-30 23:30:42 -04:00
Matan Kushner
c99f4ba338
Clean up feature request template comment 2019-04-30 14:30:40 -04:00
Matan Kushner
0872d524ca
Add docker for integration tests (#37) 2019-04-28 13:34:46 -04:00
Matan Kushner
5980a0a845
Revert "Add docker for integration tests" (#36)
This reverts commit 67d938c3de.
2019-04-28 13:08:49 -04:00
Matan Kushner
67d938c3de
Add docker for integration tests (#26) 2019-04-28 12:38:55 -04:00
Matan Kushner
9a352c0acc
Add the Git branch segment (#32)
Added
- Repository to Context for reuse in directory and git_branch
- git_branch to prompt

Changed
- Made segments bold to match spaceship
2019-04-26 22:07:07 -04:00
Tiffany Le-Nguyen
85e4b11f0b 📝 Add PULL_REQUEST_TEMPLATE.md (#30)
Co-authored-by: Matan Kushner <hello@matchai.me>
2019-04-26 14:22:58 -04:00
Tiffany Le-Nguyen
5583ce522b Add feature request template (#29) 2019-04-25 23:34:32 -04:00
Tiffany Le-Nguyen
3ca4cd90d8 Add bug report template (#28) 2019-04-25 23:00:57 -04:00
John Letey
ca12d22ace Add Python version segment (#23) 2019-04-25 11:06:18 -04:00
Tim Mulqueen
213cded911 Add a Contributing section to README.md (#20) 2019-04-24 17:12:08 -04:00
John Letey
f75013ce08 Correct the Rust version symbol in README (#19) 2019-04-24 09:15:00 -04:00
Matan Kushner
bb2bcd604b
Share dir_files between segments through Context (#16) 2019-04-23 14:51:08 -04:00
Matan Kushner
33d8beda2d
Update features included in starship 2019-04-21 19:49:11 -04:00
Tim Mulqueen
643256e877 feat: Add Rust version segment (#15) 2019-04-21 19:37:34 -04:00
Matan Kushner
022e0002e4
Use "context" to contain run details (#14)
* Create "context" to contain run details

* Use context in tests and benchmarks
2019-04-19 16:57:14 -04:00
dependabot[bot]
6d7485cf50
Bump clap from 2.32.0 to 2.33.0 (#13) 2019-04-18 04:06:31 +00:00