1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-30 20:59:13 +00:00
Commit Graph

2520 Commits

Author SHA1 Message Date
Lyle Mantooth
67b6376e2e
feat: add pijul_channel module (#4765)
* feat: Pijul VCS support

* Extra bits needed for new module.

* Format Markdown table.

* Fix lint.

* Don't test Pijul module so thoroughly.

Installing from source is too expensive, and compiled binaries are only
available for Windows (and unofficially as well). Perhaps once Pijul
1.0.0 comes out of beta there will be more binaries available in package
  repos.

* Format!

* Bad rebase, remove Pijul install from workflow.

* Mock Pijul commands for code coverage.

* Make fake .pijul directory in fixture.

* Truly mock `pijul` command.

* Rename module from `pijul` to `pijul_channel`.

* Format!

* Fix config-schema.json.

* Missed changing module name in docs/ folder.
2022-12-31 15:55:23 +01:00
Nicolas Évrard
8d2256ab1d
feat(hg_branch): Add support for mercurial topics and find hg root dir (#4771)
* feat(hg_branch): Add support for mercurial topics and find hg root dir

* Fix clippy errors

* Use crate::utils::read_file

* Update config-schema.json

* Extend PathExt to retrieve device ID of Path

* Break hg root search when switching to another device

* Fix clippy and formatting errors

* Update docs/config/README.md

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Update src/modules/utils/path.rs

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Update src/configs/hg_branch.rs

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Update hg_branch description

* Revert to lazy loading, use truncate_text from utils and use fake topic

* Format code and fix clippy error

* Revert to previous test string as topic is optional in the config

* Fix doc formatting

* Stub device_id for windows

* Update config-schema.json

* Update src/modules/hg_branch.rs

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Do not use unwrap in device_id

* Fix formatter error

* Use dev under non linux unixes

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2022-12-31 15:53:55 +01:00
John Slowik
8a8e09dd50
docs(preset): Plaintext status added (#4775)
* Plaintext status added

* One test case
2022-12-31 12:35:28 +01:00
renovate[bot]
e0590f1669 build(deps): update gitoxide crates 2022-12-30 23:52:36 +00:00
cassis163
69929dd0ac
docs(nu): Add -f flag (#4777)
* Add missing -f flag in documentation

* Fix Nushell version
2022-12-30 18:04:47 +01:00
renovate[bot]
580113092b build(deps): update rust crate shadow-rs to 0.20.0 2022-12-30 14:37:51 +00:00
renovate[bot]
92e73fa86c build(deps): update rust crate once_cell to 1.17.0 2022-12-29 20:37:34 +00:00
Jérémy Audiger
8c2135f55d
docs(typo): replace 'to to' with 'to' (#4773)
fix: 'to to' -> 'to'
2022-12-29 18:57:54 +01:00
renovate[bot]
ce18b7bb9e build(deps): update rust crate quick-xml to 0.27.1 2022-12-28 23:57:06 +00:00
David Knaack
5d4cb6ff8f
feat(env_var): Add support for env_var.VAR in format (#4497)
Co-Authored-By: Segev Finer <24731903+segevfiner@users.noreply.github.com>

Co-authored-by: Segev Finer <24731903+segevfiner@users.noreply.github.com>
2022-12-28 21:00:49 +01:00
renovate[bot]
f183a4e4c2 build(deps): update rust crate toml_edit to 0.16.2 2022-12-28 05:05:06 +00:00
Julian Antonielli
19fdf9bba5
feat(nix): support new nix shell command (#4724)
* Support `nix shell`

* Remove unnecessary `Debug` implementation

* Add test to detect false positive

* Improve detection of `/nix/store` in $PATH

* Add docs about unknown state

* Gate under `heuristic` flag

* Regenerate config schema
2022-12-27 14:59:40 +01:00
Scott Palmer
9093891acb
fix(package): Improve regex for extracting gradle version from gradle.properties (#4760)
fix: Improve regex for extracting gradle package version from gradle.properties (#4759)
2022-12-27 13:40:56 +01:00
renovate[bot]
d4e664eda5 build(deps): update rust crate toml_edit to 0.16.1 2022-12-27 06:45:51 +00:00
renovate[bot]
ddb17f8851 build(deps): update rust crate serde to 1.0.152 2022-12-26 21:51:05 +00:00
renovate[bot]
2ab07552e1 build(deps): update gitoxide crates 2022-12-26 15:29:51 +00:00
renovate[bot]
9789a63a00 build(deps): update rust crate quick-xml to 0.27.0 2022-12-25 15:45:16 +00:00
David Knaack
784c935169
build(deps): update gitoxide crates (#4748)
* build(deps): update gitoxide crates

* remove call to removed function (env is loaded automatically now)

* bump git-repository to v0.30.1

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-24 11:08:14 -06:00
renovate[bot]
d0848b460a build(deps): update rust crate toml_edit to 0.16.0 2022-12-23 23:33:13 +00:00
renovate[bot]
78d20c902f build(deps): update pest crates to 2.5.2 2022-12-23 17:14:31 +00:00
Alexey Zapparov
255f91c3ce
fix: Remove vulnerable time-0.1.x chrono dependency (#4750)
The dependency is optional for chrono and enabled by default for
backward compatibility only.

See: https://rustsec.org/advisories/RUSTSEC-2020-0071
See: https://github.com/chronotope/chrono/blob/v0.4.23/CHANGELOG.md#0416
2022-12-23 10:35:24 +01:00
renovate[bot]
d32f1150f1 build(deps): update clap crates 2022-12-22 23:50:53 +00:00
fold-squirrel
e93dbf8630
feat(fennel): add fennel module (#4717) 2022-12-21 10:53:53 -06:00
renovate[bot]
c79e1d2be2 build(deps): update rust crate clap to 4.0.30 2022-12-21 07:10:12 +00:00
Kevin Song
addd11e300
refactor(kubernetes): Remove nested Options (#4743)
Kubernetes module was previously a bit messy, with lots of
unnecessarily nested options. Clean this up using filter_map and
find_map, with two major results:

1. `ctx_components` is now a Vec<KubeCtxComponent> instead of a
   Vec<Option<KubeCtxComponent>>. This greatly simplified downstream
   processing of these context components.

2. Instead of storing a partial computation of the namespace in
   variables `kube_ns`, etc, compute them directly in the formatter
   mapping. This is made simpler (read: actually doable) by change 1.
2022-12-20 19:04:40 -06:00
Jett Chen
a51f76375f
docs: fix README shields badge (#4740) 2022-12-19 18:15:30 +09:00
renovate[bot]
f720abed4b build(deps): update rust crate serde_json to 1.0.91 2022-12-19 06:45:35 +00:00
renovate[bot]
bad5618870 build(deps): update dependency dprint/dprint-plugin-markdown to v0.15.1 2022-12-19 03:53:24 +00:00
renovate[bot]
3c43676771 build(deps): update rust crate serde to 1.0.151 2022-12-19 00:26:38 +00:00
renovate[bot]
1ef96d3ddc build(deps): update rust crate semver to 1.0.16 2022-12-18 21:38:14 +00:00
Foster Z
27d167b7a2
fix(git_commit): fix potential test failure (#4734)
Changes git command used in tests to avoid potential failures 
with lightweight tags.
2022-12-18 12:33:01 -06:00
renovate[bot]
eb5a01b773 build(deps): update rust crate semver to 1.0.15 2022-12-18 16:30:21 +00:00
renovate[bot]
c75d88f2ad build(deps): update rust crate process_control to 4.0.1 2022-12-18 13:40:57 +00:00
David Knaack
14de3b34c1
chore: fix clippy warnings in gradle module (#4736) 2022-12-18 14:18:37 +01:00
Martin Weissbach
0abf4b937e
docs(config): clarify git-commit tag variable (#4729)
The `git_commit` module uses a `tag` variable in its format string,
which is not explained in the Variables section of this module.

Missing clarification of this `tag` variable is added to the
documentation of the `git_commit` module.

Fixes starship/4640
2022-12-17 20:51:38 -06:00
David Knaack
aa6c2dd588
chore: fix clippy warnings for rust 1.66 (#4715)
chore: fix new clippy lints
2022-12-17 18:01:27 +01:00
Marie
220844daa0
feat(gradle): add gradle module (#4423)
* docs: document gradle module

* implement gradle module

* gradle-module: add test for wrapper properties case

* docs: improve gradle module documentation

* fix: fix gradle module wrapper properties test

* drop gradle executable strategy

* apply suggested stuff

* Fix config schema
2022-12-17 13:32:40 +01:00
renovate[bot]
1f7d1e39c6 build(deps): update rust crate shadow-rs to 0.19.0 2022-12-14 20:33:06 +00:00
renovate[bot]
e70b8148e9 build(deps): update rust crate toml to 0.5.10 2022-12-14 18:00:51 +00:00
github-actions[bot]
4316eeb57f
chore(master): release 1.12.0 (#4485) 2022-12-14 01:01:35 +09:00
Matan Kushner
42d8ec3717
docs(i18n): new Crowdin updates (#4711) 2022-12-14 00:50:29 +09:00
renovate[bot]
dac6d998cf build(deps): update dprint plugins 2022-12-12 09:21:56 +00:00
Matan Kushner
0d98c4c0b7
docs(i18n): new Crowdin updates (#4687) 2022-12-12 14:14:19 +09:00
Matan Kushner
18e714598d
ci: add Norwegian docs to formatting exceptions 2022-12-12 14:13:20 +09:00
renovate[bot]
c6485e33dd build(deps): update rust crate serde to 1.0.150 2022-12-12 04:13:40 +00:00
renovate[bot]
ab614a372c build(deps): update rust crate rayon to 1.6.1 2022-12-10 02:14:44 +00:00
Dennis Waitong Lam
7341607c29
fix(buf): broken icon on windows 10 (#4689)
Closes https://github.com/starship/starship/issues/4608
2022-12-09 18:41:59 +09:00
renovate[bot]
c9de67bd66 build(deps): update rust crate serde to 1.0.149 2022-12-05 14:44:07 +00:00
renovate[bot]
9af9db8f2b
build(deps): update dependency dprint/dprint-plugin-markdown to v0.14.3 (#4683) 2022-12-05 16:14:30 +09:00
Matan Kushner
70c05d49bd
docs(i18n): new Crowdin updates (#4487) 2022-12-05 15:54:12 +09:00