Matan Kushner
bbba4e1657
fix: change command failure log level to trace
...
Closes #1020
Closes #1024
2020-03-22 17:58:46 -04:00
David Knaack
56d475578e
fix: possible fix for Intermittent Test Failures in GH Actions ( #987 )
...
* fix: possible fix for Intermittent Test Failures in GH Actions
* undo some of the chnages to directory.rs
* typo
* add docs
2020-03-15 12:12:25 -05:00
David Knaack
fef8cc8bbd
improvement: replace reqwest with attohttpc ( #999 )
2020-03-14 21:07:34 -04:00
Thomas O'Donnell
f790b67e3d
refactor: Fix new Clippy suggestions ( #1006 )
...
* Fix new Clippy suggestions
This just cleans up a few new suggestions from Clippy.
* Dummy commit to trigger CI
2020-03-14 11:37:51 -04:00
Basix
8b4489768b
fix(utils): print log for exec_cmd failure ( #982 )
2020-03-06 16:17:34 -05:00
Matan Kushner
d894ef5ad3
feat: make reqwest an optional dependency ( #979 )
2020-03-05 10:53:58 -05:00
Kevin Song
7f82dd66ed
fix: check if editor is not found for `configure` ( #961 )
...
* fix: check if editor is not found for `configure`
STD_EDITOR falls back on `vi` if $EDITOR and $VISUAL is not set.
However, some machines might not have `vi` symlinked or installed and a
bad error message is displayed. This commit adds a better error message.
* fix lint errors
* Change NotFound to write to stderr instead of panic!
Oh wow writing rust makes my commit messages look very enthusiastic!
2020-03-05 09:50:34 -06:00
Matan Kushner
d0e1904758
feat(package): ignore private JS packages ( #975 )
...
`private: true` in `package.json` files means that the package is not supposed to be published to npm, which makes the `version` field meaningless, so we should probably ignore it to not clutter the prompt too much.
2020-03-05 10:49:11 -05:00
KokaKiwi
243e97cfe6
feat: add Elixir module ( #437 )
2020-03-01 22:29:27 -05:00
Tadej Novak
7e66791cb2
feat: add singularity module ( #932 )
2020-02-26 11:18:19 -05:00
Kevin Lane
ce540fff7a
feat: display Gradle project version ( #662 )
...
This PR adds package version support for Gradle projects. The version number is extracted from the `build.gradle` file in the current directory, similar to existing support for other packages.
2020-02-21 14:12:21 -05:00
Thomas O'Donnell
d44c037ba5
test: refactor ruby and php modules to use mocked commands ( #936 )
2020-02-21 11:52:39 -05:00
Onielfa
ddd8cfb388
perf: refactor git status to use HashMap for counts ( #938 )
2020-02-14 20:38:25 -05:00
nesmyslny
0312c7b91e
feat(git_commit): Show the hash of commits when detached HEAD ( #738 )
2020-02-12 14:56:29 -05:00
Thomas O'Donnell
67397d9096
test(golang): refactor golang tests to use mocked command ( #925 )
...
Refactor the golang module tests to use a mocked command and no
longer depend on having a particular version of Go installed.
2020-02-12 13:22:21 -05:00
Brett Mandler
bc600e4321
feat: Add cabal and hpack detection for the haskell module ( #915 )
2020-02-06 19:29:57 -05:00
Jon Grythe Stødle
2509a79176
fix: Change command duration variable for Ion shell to CMD_DURATION ( #911 )
2020-02-06 14:41:55 -05:00
Andrew Prokhorenkov
cead23edca
test: port Haskell module tests to integration test ( #913 )
2020-02-06 12:12:07 -05:00
Kevin Song
c4ab66d7fe
refactor: Move ANSI escaping into its own functions ( #866 )
2020-02-06 11:10:59 -05:00
Matan Kushner
66d5f34184
chore: give unused function a test annotation
...
Former-commit-id: 94acaa37c593f4952c349d663de71e3f1990926b
2020-02-05 23:03:26 -05:00
Matan Kushner
21f2947222
revert: "refactor: replace reqwest with ureq ( #844 )" ( #895 )
...
Former-commit-id: 0908c12a4950b6b4ceea22a3e1cbd4a8039d4006
2020-02-05 22:58:39 -05:00
Andrew Prokhorenkov
273a937505
feat: Add an Elm module ( #879 )
...
Former-commit-id: d42137309da457a438b554601f0734db963a193e
2020-02-05 22:57:04 -05:00
Youssef Habri
f665df226c
feat: Add Crystal version module ( #170 )
2020-02-04 18:27:06 -05:00
Kyle Sferrazza
752abd4bfb
fix: make echo test use /bin/sh ( #892 )
2020-02-04 12:48:01 -05:00
Matan Kushner
860accac55
chore: readd from_path function
...
Despite the function not being used directly, it was being used in tests.
Readding the function so tests will pass.
2020-02-03 17:13:59 -05:00
Matan Kushner
f14aef4769
chore(bump): v0.34.1
2020-02-03 17:04:16 -05:00
Matan Kushner
0d1578bbe1
fix: move get_shell method into Context
2020-02-03 17:01:50 -05:00
Sam Rose
83337a1a03
perf: Optimize files, folder and extension lookups in Context ( #880 )
2020-02-03 16:57:48 -05:00
Matan Kushner
11b737bb44
feat!: Update colors of package and php modules ( #782 )
2020-02-01 18:10:12 -05:00
Andrew Prokhorenkov
9229a48bc9
fix(haskell): Add the Haskell module to the default prompt order ( #893 )
2020-02-01 17:16:10 -05:00
Luca Rinaldi
041c0427bb
fix: escape "$" character to avoid bash interpreting ( #884 )
2020-01-28 13:55:16 -05:00
Kevin Song
5655a90a28
fix: Restrict clear screen control code printing to fish ( #865 )
...
Wraps clearscreen print codes in a statement to detect fish shell, since it is a
workaround for a fish shell behavior.
2020-01-27 17:23:08 -06:00
Matan Kushner
3365beae09
test(nodejs): Port nodejs module tests from E2E to integraton ( #867 )
...
Replaces the existing nodejs module end-to-end tests with integration tests that don't require preinstalled environmental dependencies.
- Moved the tests to the same file as the module they test
- Created a render_module utility function for rendering modules within tests
- Removed Node.js installation during CI setup
- Add Shell to Context to allow for tests to not run shell-specific code
2020-01-26 16:37:18 -06:00
Andrew Prokhorenkov
6f2c9fb397
feat: add Haskell Stack support ( #546 )
...
Add a Haskell Stack module when a stack.yaml file is detected
2020-01-25 00:48:39 -06:00
Sam Rose
f4c095de92
fix(java): Add detection for *.gradle files ( #871 )
...
Currently the Java module detection looks for build.gradle specifically, but it's possible to rename build.gradle to *.gradle. This change adds Gradle files to the list of detected file extensions.
2020-01-24 10:22:30 -05:00
Peter Bull
b723a7d562
fix(python): Trim "Anaconda, Inc." from version ( #861 )
2020-01-21 11:14:40 -05:00
David Knaack
d869b3a098
refactor: replace reqwest with ureq ( #844 )
2020-01-19 11:00:40 -05:00
Thomas O'Donnell
197376633a
fix: Fix incorrect prefix usage in cmd_duration module ( #832 )
...
Fixed the way the cmd_duration module is setting it's prefix to be the
same as the other modules.
2020-01-18 01:15:08 -06:00
Jon Grythe Stødle
313a03e2b7
fix(bug-report): Fix status code 414 when generated bug report is too long ( #750 )
2020-01-15 23:47:56 -05:00
Thomas O'Donnell
0fe90bf018
refactor(dotnet): Use `exec_cmd` util ( #826 )
...
Have refactored the dotnet module to use the util::exec_cmd rather than
the Command module directly.
2020-01-15 13:52:38 -05:00
Thomas O'Donnell
60ce320912
refactor(php): Use `exec_cmd` util( #825 )
2020-01-12 17:50:25 -05:00
Thomas O'Donnell
0d81694e32
chore: Add ability to mock commands during tests ( #768 )
2020-01-11 10:08:32 -05:00
Hendrik Rombach
dab27f3334
fix: Correct module description text for git_commit ( #812 )
2020-01-07 12:12:40 -05:00
dependabot-preview[bot]
a251ddb957
build(deps): bump reqwest from 0.9.24 to 0.10.0 ( #797 )
...
* build(deps): bump reqwest from 0.9.24 to 0.10.0
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.24 to 0.10.0.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.9.24...v0.10.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 12:10:30 -05:00
InNoobWeTrust
2eeaa05bfb
feat: Terminate $PROMPT_COMMAND properly ( #799 )
...
Add trailing semicolon to end $PROMPT_COMMAND properly.
This will prevent starship_precmd to accidentally mess with other hooks invoked after it.
2020-01-04 10:52:08 -05:00
David Hewson
178f177dac
perf(hg_branch): Replace direct calls to `hg` ( #803 )
...
perf: don't use hg process to get branch / bookmark information, each call was taking 250ms and it was making on average 2 calls.
the branch and bookmark information is available in files in the root of the repo, use that instead.
now takes 300 micro seconds
fix: do not use .hgignore to decide if it is an hg repo. was providing false positives. #721
fix: after changing branch the new branch was not show (the old branch was shown), the new branch is now correctly shown. #722
fix: if no branch override was set it would say (no branch) however if you commited in that state you would commit to the branch default so say that instead
2020-01-03 17:51:45 -05:00
Jon Grythe Stødle
8e5fa60fc8
feat: Add the `starship explain` command ( #699 )
...
This adds the explain argument to Starship, which explains what the printed modules in the prompt are.
2020-01-01 23:19:08 -05:00
AppleTheGolden
6bafe4cd66
fix: Consider `$STARSHIP_CONFIG` in `configure` ( #795 )
...
Makes starship configure consider the $STARSHIP_CONFIG variable before falling back to the default of ~/.config/starship.toml.
2019-12-30 15:46:02 -08:00
marblenix
b82ff321fa
feat(git_status): Add a stash count segment ( #598 )
2019-12-28 22:20:36 -05:00
InNoobWeTrust
9d49410102
fix: Remove trailing semicolon from `$PROMPT_COMMAND` ( #784 )
...
Remove any trailing semicolon in $PROMPT_COMMAND before appending starship_precmd, to prevent syntax error.
2019-12-28 10:03:59 -05:00