Commit Graph

134 Commits

Author SHA1 Message Date
Matan Kushner
0f1b71189a
chore: v0.3.1 2019-07-20 13:50:29 -04:00
Matan Kushner
7d5761a69e
chore: v3.0.1 2019-07-20 13:48:48 -04:00
allcontributors[bot]
f803d70021 docs: add chipbuster as a contributor (#107) 2019-07-20 13:47:07 -04:00
Kevin Song
aceda0052f fix: handle path to shell in starship init (#106)
Add support for paths to init function

This adds support for qualified paths (e.g. using
`/usr/local/bin/zsh` instead of `zsh`) to init.rs.

The function now converts the shell name into an
OsStr, then to a Path, then gets the file stem,
and unwraps back into a str. While this process can
fail (yielding a None), it's highly unlikely to unless
the user has messed with their shells or there's an
issue in Starship--therefore, the failure message in
this case simply asks the user to file a bug report.
2019-07-20 13:45:41 -04:00
Matan Kushner
0f76d46d95
chore: Exclude docs from published crate 2019-07-19 22:13:11 -04:00
Matan Kushner
c8975dfbb6
v0.3.0 2019-07-19 22:08:43 -04:00
Matan Kushner
283f5539d7
docs: Add links to website and missing detail (#105) 2019-07-19 21:39:35 -04:00
Matan Kushner
f7eedaf775 refactor: Improve logging where lacking 2019-07-19 18:45:38 -04:00
Matan Kushner
feb6d8aec7 refactor: Better document context contents 2019-07-19 18:45:38 -04:00
allcontributors[bot]
274e411f7d docs: add sirMerr as a docs contributor (#103) 2019-07-19 16:21:53 -04:00
Tiffany Le-Nguyen
08cf33522a docs: Add vuepress with initial docs (#99)
Co-authored-by: Tiffany Le-Nguyen <tlenguyen@expedia.com>
Co-authored-by: Matan Kushner <hello@matchai.me>
2019-07-19 16:18:52 -04:00
Matan Kushner
025c0e5e85
ci: Use Python v3.6.9 in CI (#101) 2019-07-19 15:56:36 -04:00
Matan Kushner
6d40d64612
docs: Remove plans to support "self-updating" 2019-07-19 12:14:05 -04:00
Tiffany Le-Nguyen
f11a324999 docs: Fix path to fish config in code snippet (#98) 2019-07-15 19:18:27 -04:00
dependabot-preview[bot]
d26353f3e3 chore(deps): Bump ansi_term from 0.11.0 to 0.12.0 (#96)
Bumps [ansi_term](https://github.com/ogham/rust-ansi-term) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/ogham/rust-ansi-term/releases)
- [Commits](https://github.com/ogham/rust-ansi-term/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-15 13:33:54 -04:00
Matan Kushner
ba708baebd
docs: Add demo gif from spaceship 2019-07-15 12:01:49 -04:00
Matan Kushner
1369e17aa4
ci: Use tar.gz compression for unix build assets 2019-07-15 00:20:19 -04:00
Matan Kushner
1ed3b5b41b
ci: Set releases to not be pre-releases 2019-07-15 00:04:53 -04:00
Matan Kushner
92df2174ea
ci: Trigger CI when new tags are pushed 2019-07-14 23:28:11 -04:00
Matan Kushner
0703a74048
ci: Add GitHub releases to CI (#95) 2019-07-14 17:54:45 -04:00
Matan Kushner
77ba97df19
chore: Refactor getting string values from config (#94) 2019-07-14 11:15:47 -04:00
dependabot-preview[bot]
79bfc7cf49 chore(deps): Bump log from 0.4.6 to 0.4.7 (#93)
Bumps [log](https://github.com/rust-lang/log) from 0.4.6 to 0.4.7.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang-nursery/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.6...0.4.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-11 23:28:57 -04:00
Matan Kushner
fa39026090
chore(release): 0.2.0 2019-07-10 13:48:06 -04:00
Matan Kushner
67537ae753
chore: Publish crate to Crates.io (#92)
* Add all the necessary Cargo.toml details for crates.io
* Update the image on README.md to be a full URL so crates.io can load it
* Update installation instructions to encourage installing from crates.io
2019-07-10 13:09:45 -04:00
Matan Kushner
d7754f38e7
feat: Implement simplified prompt setup process (#90)
• Add starship init which prints the shell function used to execute starship
• Document the new setup process using starship init
• Remove benchmarks for now (WIP replacement benchmarks in "benchmarking" branch )
2019-07-03 08:03:02 -04:00
dependabot-preview[bot]
5ad3e0059a chore(deps): [Security] Bump smallvec from 0.6.9 to 0.6.10 (#91)
Bumps [smallvec](https://github.com/servo/rust-smallvec) from 0.6.9 to 0.6.10. **This update includes security fixes.**
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/commits)

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

Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>
2019-07-02 21:39:44 -04:00
Matan Kushner
463ec26024
feat: Add a disabled configuration option for modules (#86)
• Add support for the disabled configuration option
This will allow you to selectively disable modules that you don't want or need. 😄
• Overwrite starship configuration file path with STARSHIP_CONFIG environment variable
• Write tests for the two configuration options that are available
2019-07-02 16:12:53 -04:00
dependabot-preview[bot]
2440ed60d0 chore(deps): Bump tempfile from 3.0.8 to 3.1.0 (#89)
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.0.8 to 3.1.0.
- [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.8...v3.1.0)

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

Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>
2019-07-01 18:21:27 -04:00
dependabot-preview[bot]
7b0533f2dd chore(deps): Bump serde_json from 1.0.39 to 1.0.40 (#88)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.39...v1.0.40)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-01 12:24:11 -04:00
​Snuggle
588fa19d05 docs: Fix fisher command in README. (#84) 2019-06-18 17:45:46 +01:00
Matan Kushner
062271c646
docs: Remove contributing section 2019-06-15 11:27:36 +01:00
Matan Kushner
ae1176c8b0
docs: Add CONTRIBUTNG.md (#79) 2019-06-15 11:23:29 +01:00
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