1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-09-28 21:19:10 +00:00
starship/src/modules
exincore 3109943822
feat: Add operating system module (#4109)
* docs(os): Add os module documentation

* docs(os): Add os to Default Prompt Format

* chore(os): Update config file schema

* feat(os): Add os entries and declarations

* feat(os): Add os module and config

* fix(os): Obey config.disabled

* feat(os): make variables 'Unknown'-aware

refactor(os): calculate variables in dedicated functions

* test(os): Add os module tests

* feat(os): make 'name' variable less 'Unknown'-aware

* docs(os): Add Preset configurations

docs(os): Use emoji as default

* feat(os): Use emoji as default

test(os): Use emoji as default

* fix(os): Add spaces after emoji symbols

* chore(os): Update config schema

* feat(os): Remove `bitness` variable

docs(os): Remove `bitness` variable

test(os): Remove `bitness` test

* feat(os): Add Cargo.toml upgrade caution for os_info

* refactor(os): Clarify get_symbol function

* docs(os): Mention supported operating systems and feature requests

* docs(os): Mention os_info inacurracy

* test(os): Remove `bitness` leftovers

* refactor(os): use nu_ansi_term

* refactor(os): add cfg_attr(schemars(deny_unknown_fields))

* chore(os): update config schema

* docs(os): expose details block

* feat(os): add garuda linux

* chore(os): update config schema

* feat(os): add case insensitivity

* feat(os): add symbols `IndexMap` use `os_info::Type` instead of `String`

* test(os): add clippy warn on new os_info::Type case

* leave missing case to test github tests

* test(os): re-add missing test case

* style(os): fix formatting

* docs(os): update to match os_info::Type serialization

- docs(os): add missing garuda to config

- test(os): mention docs updates in warn_on_os_info_update
2022-11-06 22:37:58 +01:00
..
utils chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
aws.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
azure.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +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): fix spacing & harmonize docs with actual configuration (#4450) 2022-10-07 22:07:30 +02: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 refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02: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 chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +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 chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +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 new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
git_commit.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
git_metrics.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
git_state.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +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
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
helm.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
hg_branch.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
hostname.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
java.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +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 chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01: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 refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02: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 feat: Add operating system module (#4109) 2022-11-06 22:37:58 +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 feat: Add operating system module (#4109) 2022-11-06 22:37:58 +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 new clippy lints (#4557) 2022-11-05 12:40:46 +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 chore(clippy): fix new lints (#4002) 2022-05-23 06:58:27 -04: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