1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-12 06:07:56 +00:00
starship/src/modules
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
..
utils chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
aws.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
azure.rs feat(azure): add username to azure module config (#4323) 2022-11-27 15:02:23 +01:00
battery.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
buf.rs fix(buf): broken icon on windows 10 (#4689) 2022-12-09 18:41:59 +09:00
bun.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
c.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
character.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
cmake.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
cmd_duration.rs fix: don't attempt to display cmd_duration notification if in TTY (#4535) 2022-11-28 07:23:03 -06:00
cobol.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
conda.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
container.rs fix(container): avoid detecting WSL as a systemd-container (#4593) 2022-11-15 11:14:52 +01:00
crystal.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
custom.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
daml.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
dart.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
deno.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
directory.rs feat(directory): add before_repo_root_style (#4595) 2022-12-01 23:09:11 +01:00
docker_context.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
dotnet.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
elixir.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
elm.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
env_var.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
erlang.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
fill.rs feat: add user-defined color palette (#4209) 2022-09-27 23:08:52 +02:00
gcloud.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
git_branch.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
git_commit.rs fix(git_commit): fix potential test failure (#4734) 2022-12-18 12:33:01 -06:00
git_metrics.rs fix(container): avoid detecting WSL as a systemd-container (#4593) 2022-11-15 11:14:52 +01:00
git_state.rs fix(container): avoid detecting WSL as a systemd-container (#4593) 2022-11-15 11:14:52 +01:00
git_status.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
golang.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
gradle.rs chore: fix clippy warnings in gradle module (#4736) 2022-12-18 14:18:37 +01:00
guix_shell.rs feat(guix_shell): Initial implementation (#4397) 2022-10-25 07:44:04 +02:00
haskell.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
haxe.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
helm.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
hg_branch.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
hostname.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
java.rs fix(java): Improved regex for Java version (starship#4610) (#4616) 2022-11-20 18:28:39 +01:00
jobs.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
julia.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
kotlin.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
kubernetes.rs refactor(kubernetes): Remove nested Options (#4743) 2022-12-20 19:04:40 -06:00
line_break.rs feat: Add a fill module to pad out the line (#3029) 2021-09-12 19:59:15 -04:00
localip.rs feat(localip): use reserved remote address (#4648) 2022-12-01 19:51:04 +01:00
lua.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
memory_usage.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
meson.rs feat(module): Add a meson devenv indicator (#4389) 2022-10-11 18:02:46 +02:00
mod.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
nim.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
nix_shell.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
nodejs.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
ocaml.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
opa.rs feat: Open Policy Agent module (#1740) (#4441) 2022-10-15 18:15:33 +02:00
openstack.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
os.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
package.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
perl.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
php.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
pulumi.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
purescript.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
python.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
raku.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
red.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
rlang.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
ruby.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
rust.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
scala.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
shell.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
shlvl.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
singularity.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
spack.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
status.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
sudo.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
swift.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
terraform.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
time.rs build(deps): update rust crate chrono to 0.4.23 (#4599) 2022-11-13 21:23:30 -06:00
username.rs feat(username): Detect Admin access in Windows (#2791) 2022-04-01 17:47:49 +02:00
vagrant.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
vcsh.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
vlang.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
zig.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00